where is torch.jit.module forward method? #1108
-
Hi, I am new to TorchSharp and I am trying to port my C++ code to C#. I found how to load my model the same way as in C++, but the forward method is missing? The documentation (here https://github.com/dotnet/TorchSharp/wiki/TorchScript) say that Script modules have a main forward() method. Can someone help? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It's |
Beta Was this translation helpful? Give feedback.
-
See: #1110 |
Beta Was this translation helpful? Give feedback.
It's
call()
in TorchSharp -- it corresponds to treating a module as a function object in Python.forward()
is missing on ScriptModule, apparently.