From 71738d2dc5cc5de04b316c8cc7715e81ab5b996e Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Thu, 19 Dec 2024 20:10:21 +0100 Subject: [PATCH] print exception --- .../modelrunner/pytorch/javacpp/PytorchJavaCPPInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/bioimage/modelrunner/pytorch/javacpp/PytorchJavaCPPInterface.java b/src/main/java/io/bioimage/modelrunner/pytorch/javacpp/PytorchJavaCPPInterface.java index bc3caa0..c8d156a 100644 --- a/src/main/java/io/bioimage/modelrunner/pytorch/javacpp/PytorchJavaCPPInterface.java +++ b/src/main/java/io/bioimage/modelrunner/pytorch/javacpp/PytorchJavaCPPInterface.java @@ -306,7 +306,7 @@ void runInterprocessing(List> inputTensors, List> outputTens if (task.status == TaskStatus.CANCELED) throw new RuntimeException(); else if (task.status == TaskStatus.FAILED) - throw new RuntimeException(); + throw new RuntimeException(task.error); else if (task.status == TaskStatus.CRASHED) { this.runner.close(); runner = null;