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
No related tags found
No related merge requests found
...@@ -258,6 +258,9 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface ...@@ -258,6 +258,9 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface
// TODO Auto-generated catch block // TODO Auto-generated catch block
e1.printStackTrace(); e1.printStackTrace();
} }
retrieveInterprocessingTensors(outputTensors);
if (true)
return;
ProcessBuilder builder = new ProcessBuilder(args); ProcessBuilder builder = new ProcessBuilder(args);
Process process; Process process;
...@@ -326,7 +329,7 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface ...@@ -326,7 +329,7 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface
try (RandomAccessFile rd = try (RandomAccessFile rd =
new RandomAccessFile(tmpDir + File.separator + tensor.getName() + FILE_EXTENSION, "r"); new RandomAccessFile(tmpDir + File.separator + tensor.getName() + FILE_EXTENSION, "r");
FileChannel fc = rd.getChannel();) { 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(); ByteBuffer byteBuffer = mem.duplicate();
tensor.setData(MappedBufferToImgLib2.build(byteBuffer)); tensor.setData(MappedBufferToImgLib2.build(byteBuffer));
} catch (IOException e) { } catch (IOException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment