Skip to content

Commit 7dd8150

Browse files
committed
do not sum
1 parent bb4f9e2 commit 7dd8150

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/io/bioimage/modelrunner/tensorflow/v2/api030/shm

1 file changed

+2
-1
lines changed

src/main/java/io/bioimage/modelrunner/tensorflow/v2/api030/shm/ShmBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ private static void buildFromTensorFloat(TFloat32 tensor, String memoryName) thr
138138
ByteBuffer buff2 = ByteBuffer.wrap(flat).order(ByteOrder.LITTLE_ENDIAN);
139139
tensor.asRawTensor().data().read(flat, 0, buff.capacity());
140140
buff.put(buff2);
141-
141+
/*
142142
float sum = 0;
143143
for (float ff : buff2.asFloatBuffer().array())
144144
sum += ff;
145145
System.out.println("SECOND SUM: " + sum);
146+
*/
146147
if (PlatformDetection.isWindows()) shma.close();
147148
}
148149

0 commit comments

Comments
 (0)