We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2681a80 commit ab393a4Copy full SHA for ab393a4
1 file changed
llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo/ETImage.java
@@ -51,15 +51,15 @@ public int[] getInts() {
51
// the runner expects an int array as input.
52
int[] intArray = new int[bytes.length];
53
for (int i = 0; i < bytes.length; i++) {
54
- intArray[i] = (bytes[i++] & 0xFF);
+ intArray[i] = (bytes[i] & 0xFF);
55
}
56
return intArray;
57
58
59
public float[] getFloats() {
60
float[] floatArray = new float[bytes.length];
61
62
- floatArray[i] = (((bytes[i++] & 0xFF) / 255.0f) - 0.5f) / 0.5f;
+ floatArray[i] = (((bytes[i] & 0xFF) / 255.0f) - 0.5f) / 0.5f;
63
64
return floatArray;
65
0 commit comments