Skip to content

Commit 6106a9b

Browse files
fergushendersoncopybara-github
authored andcommitted
Change expected output to match actual output.
Previously, the program was saying that the expected output was "[3, 9]" and actual output was "[3.0, 9.0]", which can lead to confusion: it's not immediately clear to the reader whether the actual output is correct. PiperOrigin-RevId: 697571263
1 parent edd2c1f commit 6106a9b

File tree

1 file changed

+2
-1
lines changed
  • lite/examples/native_api/android_play_services/app/src/main/java/com/google/samples/gms/tflite/c

1 file changed

+2
-1
lines changed

lite/examples/native_api/android_play_services/app/src/main/java/com/google/samples/gms/tflite/c/MainActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ private void runScenario() {
8888
jni.loadModel(getAssets(), "add.tflite");
8989
logEvent("Model loaded");
9090
float[] output = jni.runInference(new float[] {1.f, 3.f});
91-
logEvent("Ran inference, expected: [3, 9], got output: " + Arrays.toString(output));
91+
logEvent(
92+
"Ran inference, expected: [3.0, 9.0], got output: " + Arrays.toString(output));
9293
jni.destroy();
9394
logEvent("TfLiteJni destroyed");
9495
return Tasks.forResult(output);

0 commit comments

Comments
 (0)