Skip to content

Commit

Permalink
add print to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 23, 2024
1 parent f50a2ad commit de260bd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ private static void buildFromTensorFloat(Tensor tensor, String memoryName) throw
tensor.data_ptr_float().get(flat);
floatBuffer.put(flat);
byteBuffer.rewind();
float sum = 0;
for (float ff : flat)
sum += ff;
System.out.println("SUMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: " + sum);
shma.getDataBufferNoHeader().put(byteBuffer);
if (PlatformDetection.isWindows()) shma.close();
}
Expand Down

0 comments on commit de260bd

Please sign in to comment.