Skip to content

Commit fdc387e

Browse files
authored
Merge branch 'main' into shoumikhin-patch-6
2 parents c0836a5 + ee52837 commit fdc387e

File tree

6 files changed

+4
-14
lines changed

6 files changed

+4
-14
lines changed

extension/android/executorch_android/src/androidTest/java/org/pytorch/executorch/ModuleE2ETest.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ class ModuleE2ETest {
6969

7070
val module = Module.load(getTestFilePath("/mv3_xnnpack_fp32.pte"))
7171
val expectedBackends = arrayOf("XnnpackBackend")
72-
Assert.assertArrayEquals(
73-
expectedBackends,
74-
module.getMethodMetadata("forward").getBackends(),
75-
)
7672
}
7773

7874
@Test

extension/android/executorch_android/src/androidTest/java/org/pytorch/executorch/ModuleInstrumentationTest.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ class ModuleInstrumentationTest {
5959
@Throws(IOException::class, URISyntaxException::class)
6060
fun testMethodMetadata() {
6161
val module = Module.load(getTestFilePath(TEST_FILE_NAME))
62-
63-
Assert.assertArrayEquals(arrayOf("forward"), module.getMethods())
64-
Assert.assertTrue(module.getMethodMetadata("forward").backends.isEmpty())
6562
}
6663

6764
@Test

extension/android/executorch_android/src/main/java/org/pytorch/executorch/Module.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Map<String, MethodMetadata> populateMethodMeta() {
5959
Map<String, MethodMetadata> metadata = new HashMap<String, MethodMetadata>();
6060
for (int i = 0; i < methods.length; i++) {
6161
String name = methods[i];
62-
metadata.put(name, new MethodMetadata().setName(name).setBackends(getUsedBackends(name)));
62+
metadata.put(name, new MethodMetadata().setName(name));
6363
}
6464

6565
return metadata;

extension/apple/ExecuTorch/__tests__/ModuleTest.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
@testable import ExecuTorch
10-
9+
import ExecuTorch
1110
import XCTest
1211

1312
class ModuleTest: XCTestCase {

extension/apple/ExecuTorch/__tests__/TensorTest.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
@testable import ExecuTorch
10-
9+
import ExecuTorch
1110
import XCTest
1211

1312
class TensorTest: XCTestCase {

extension/apple/ExecuTorch/__tests__/ValueTest.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
@testable import ExecuTorch
10-
9+
import ExecuTorch
1110
import XCTest
1211

1312
class ValueTest: XCTestCase {

0 commit comments

Comments
 (0)