Closed cuongducle closed 3 years ago
@cuongducle Have you compared the input shape? The error message is saying there is a mismatch on your tensor size
If possible, you can print the NDArray before passing it to inference so we can see the shape of it. Apart from that, you can also share us a template model from our end to reproduce the case if necessary.
The input shape was wrong. Thank you.
Description
I trainned a encoder model in pytorch export the model as torch trace.I inferenced the model all right on the same computer in python. But when i load the model on java and run inference the result goes wrong.
Expected Behavior
When i inference using DJL.
Error Message
Steps to reproduce
(Paste the commands you ran that produced the error.)
1.Export traced model. 2.Run the java code.
Environment Info
I using java jupyter notebook Ijava.
the output of
./gradlew debugEnv
: