Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 24, 2024
1 parent fc1cfd2 commit 76c8143
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,11 @@ private static void buildFromTensorFloat(Tensor tensor, String memoryName) throw
FloatBuffer floatBuffer = byteBuffer.asFloatBuffer();
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);
System.out.println("equals " + (shma.getDataBufferNoHeader().get(100) == byteBuffer.get(100)));
System.out.println("equals " + (shma.getDataBufferNoHeader().get(500) == byteBuffer.get(500)));
System.out.println("equals " + (shma.getDataBufferNoHeader().get(300) == byteBuffer.get(300)));
System.out.println("equals " + (shma.getDataBufferNoHeader().get(1000) == byteBuffer.get(1000)));
if (PlatformDetection.isWindows()) shma.close();
}

Expand Down

0 comments on commit 76c8143

Please sign in to comment.