Skip to content
Snippets Groups Projects
Commit 62e437b0 authored by carlosuc3m's avatar carlosuc3m
Browse files

keep correcting errors

parent a25de514
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,7 @@ public class Tensorflow1Interface implements DeepLearningEngineInterface
public void runInterprocessing(List<Tensor<?>> inputTensors, List<Tensor<?>> outputTensors) throws RunModelException {
createTensorsForInterprocessing(inputTensors);
createTensorsForInterprocessing(outputTensors);
List<String> args = getProcessCommandsWithoutArgs();
args.add(modelFolder);
args.add(this.tmpDir);
......
......@@ -261,7 +261,7 @@ public final class MappedBufferToImgLib2
long[] shape = new long[0];
if (!shapeStr.isEmpty() && !shapeStr.equals("[]")) {
shapeStr = shapeStr.substring(0, shapeStr.length() - 1);
shapeStr = shapeStr.substring(1, shapeStr.length() - 1);
String[] tokens = shapeStr.split(", ?");
shape = Arrays.stream(tokens).mapToLong(Long::parseLong).toArray();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment