Skip to content

Commit bee3ab1

Browse files
committed
just load
1 parent 82429a0 commit bee3ab1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

extension/android/executorch_android/src/androidTest/java/org/pytorch/executorch/LlmModuleInstrumentationTest.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,19 @@ public void setUp() throws IOException {
7474
public GrantPermissionRule mRuntimePermissionRule = GrantPermissionRule.grant(Manifest.permission.READ_EXTERNAL_STORAGE);
7575

7676
@Test
77-
public void testLoad() throws IOException, URISyntaxException{
77+
public void testGenerate() throws IOException, URISyntaxException{
7878
int loadResult = mModule.load();
7979
// Check that the model can be load successfully
8080
assertEquals(OK, loadResult);
8181
}
8282

83+
@Override
84+
public void onResult(String result) {
85+
results.add(result);
86+
}
87+
88+
@Override
89+
public void onStats(float tps) {
90+
tokensPerSecond.add(tps);
91+
}
8392
}

0 commit comments

Comments
 (0)