How to deploy model in Java ?

我在Ubuntu系统使用java调用model,总是提示"No
suchMethod org.pytorch.NativePeer.forward ", 以下是我的代码。请不吝指教。非常谢谢

I use java to call model in Ubuntu system, always prompt “no”

suchMethod org.pytorch.NativePeer . forward ", here is my code. Please don’t be stingy. Thank you very much!

image

image

image