We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6486ea4 commit 8a5cdf1Copy full SHA for 8a5cdf1
src/main/java/io/bioimage/modelrunner/pytorch/javacpp/shm/TensorBuilder.java
@@ -138,7 +138,6 @@ private static org.bytedeco.pytorch.Tensor buildFloat(SharedMemoryArray shmArray
138
ByteBuffer buff = shmArray.getDataBufferNoHeader();
139
float[] flat = new float[buff.capacity() / 4];
140
buff.asFloatBuffer().get(flat);
141
- buff.rewind();
142
Tensor ndarray = Tensor.create(flat, ogShape);
143
return ndarray;
144
}
0 commit comments