Skip to content

Commit

Permalink
line for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Dec 20, 2024
1 parent 552869e commit 1d90073
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import io.bioimage.modelrunner.engine.DeepLearningEngineInterface;
import io.bioimage.modelrunner.exceptions.LoadModelException;
import io.bioimage.modelrunner.exceptions.RunModelException;
import io.bioimage.modelrunner.numpy.DecodeNumpy;
import io.bioimage.modelrunner.pytorch.shm.ShmBuilder;
import io.bioimage.modelrunner.pytorch.shm.TensorBuilder;
import io.bioimage.modelrunner.pytorch.tensor.ImgLib2Builder;
Expand Down Expand Up @@ -338,6 +339,7 @@ else if (task.status == TaskStatus.CRASHED) {
shmaOutputList.add(shm);
}
RandomAccessibleInterval<?> rai = shm.getSharedRAI();
DecodeNumpy.saveNpy("/home/carlos/git/mm.npy", Cast.unchecked(rai));
outputTensors.get(i).setData(Tensor.createCopyOfRaiInWantedDataType(Cast.unchecked(rai), Util.getTypeFromInterval(Cast.unchecked(rai))));
}
} catch (Exception e) {
Expand Down

0 comments on commit 1d90073

Please sign in to comment.