Skip to content

Commit

Permalink
soy tontoooooooooooo
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 23, 2024
1 parent 58bd149 commit e6f5bd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private static void buildFromTensorFloat(Tensor tensor, String memoryName) throw
ByteBuffer byteBuffer = ByteBuffer.allocateDirect((int) (flatSize * Float.BYTES));
FloatBuffer floatBuffer = byteBuffer.asFloatBuffer();
tensor.data_ptr_float().get(flat);
floatBuffer.put(flatSize);
floatBuffer.put(flat);
byteBuffer.rewind();
shma.getDataBufferNoHeader().put(byteBuffer);
if (PlatformDetection.isWindows()) shma.close();
Expand Down

0 comments on commit e6f5bd5

Please sign in to comment.