Skip to content

Commit

Permalink
do not sum
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 25, 2024
1 parent bb4f9e2 commit 7dd8150
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ private static void buildFromTensorFloat(TFloat32 tensor, String memoryName) thr
ByteBuffer buff2 = ByteBuffer.wrap(flat).order(ByteOrder.LITTLE_ENDIAN);
tensor.asRawTensor().data().read(flat, 0, buff.capacity());
buff.put(buff2);

/*
float sum = 0;
for (float ff : buff2.asFloatBuffer().array())
sum += ff;
System.out.println("SECOND SUM: " + sum);
*/
if (PlatformDetection.isWindows()) shma.close();
}

Expand Down

0 comments on commit 7dd8150

Please sign in to comment.