I trained a custom PyTorch model and saved it as a .pt file. I'm now trying to load this model in Java using DJL.
Path modelDir = Paths.get("/Users/myname/eclipse-workspace/myProject/src/ML/");
Model model = Model.newInstance("model.pt");
model.load(modelDir);
However, this gives the following exception:
ai.djl.engine.EngineException: No deep learning engine found.
I found that even when I change the path to something totally invalid, I get the same error. So I think the issue is with the path or the model name. What am I doing wrong? I'm running the project via Maven in Eclipse by the way.
Thank you!