From 1f5fb48b29695364a517b82bf299f3bbc2a28b13 Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Wed, 1 Mar 2023 00:56:04 +0100 Subject: [PATCH] keep correcting errors --- .../icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bioimageanalysis/icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java b/src/main/java/org/bioimageanalysis/icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java index 1e2506c..a8caccc 100644 --- a/src/main/java/org/bioimageanalysis/icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java +++ b/src/main/java/org/bioimageanalysis/icy/deeplearning/tensorflow/v1/Tensorflow1Interface.java @@ -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) { -- GitLab