Skip to content

where is torch.jit.module forward method? #1108

Answered by NiklasGustafsson
dbriard asked this question in Q&A
Discussion options

You must be logged in to vote

It's call() in TorchSharp -- it corresponds to treating a module as a function object in Python. forward() is missing on ScriptModule, apparently.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@dbriard
Comment options

@NiklasGustafsson
Comment options

@dbriard
Comment options

Answer selected by dbriard
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants