Skip to content
Snippets Groups Projects
Commit 1f5fb48b authored by carlosuc3m's avatar carlosuc3m
Browse files

keep correcting errors

parent 62e437b0
No related branches found
Tags v11.5
No related merge requests found
......@@ -258,6 +258,9 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface
// TODO Auto-generated catch block
e1.printStackTrace();
}
retrieveInterprocessingTensors(outputTensors);
if (true)
return;
ProcessBuilder builder = new ProcessBuilder(args);
Process process;
......@@ -326,7 +329,7 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface
try (RandomAccessFile rd =
new RandomAccessFile(tmpDir + File.separator + tensor.getName() + FILE_EXTENSION, "r");
FileChannel fc = rd.getChannel();) {
MappedByteBuffer mem = fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size());
MappedByteBuffer mem = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
ByteBuffer byteBuffer = mem.duplicate();
tensor.setData(MappedBufferToImgLib2.build(byteBuffer));
} catch (IOException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment