diff --git a/pom.xml b/pom.xml index 4997e1f..7bf1850 100644 --- a/pom.xml +++ b/pom.xml @@ -125,7 +125,7 @@ sign,deploy-to-scijava - 0.3.11 + 0.3.12-SNAPSHOT 0.5.0 [11,) 11 diff --git a/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/Tensorflow2Interface.java b/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/Tensorflow2Interface.java index 71c01f8..f47e8f3 100644 --- a/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/Tensorflow2Interface.java +++ b/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/Tensorflow2Interface.java @@ -184,7 +184,7 @@ public class Tensorflow2Interface implements DeepLearningEngineInterface { public Tensorflow2Interface() throws IOException { boolean isWin = PlatformDetection.isWindows(); - boolean isIntel = new PlatformDetection().getArch().equals(PlatformDetection.ARCH_X86_64); + boolean isIntel = PlatformDetection.getArch().equals(PlatformDetection.ARCH_X86_64); if (true || (isWin && isIntel)) { interprocessing = true; tmpDir = getTemporaryDir(); @@ -205,7 +205,7 @@ private Tensorflow2Interface(boolean doInterprocessing) throws IOException interprocessing = false; } else { boolean isMac = PlatformDetection.isMacOS(); - boolean isIntel = new PlatformDetection().getArch().equals(PlatformDetection.ARCH_X86_64); + boolean isIntel = PlatformDetection.getArch().equals(PlatformDetection.ARCH_X86_64); if (isMac && isIntel) { interprocessing = true; tmpDir = getTemporaryDir();