Paran0:

Attempt to invoke virtual method 'org.pytorch.IValue org.pytorch.Module.forward(org.pytorch.IValue[])' on a null object reference**



This seem to suggest you are calling forward on object that is not initialized?
Similar to this one? android - java.lang.NullPointerException: Attempt to invoke virtual method on a null object reference - Stack Overflow 3.