Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/tutorials
/ forward
Method
forward
beginner_source/nn_tutorial.py:747–748 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
745
self.func = func
746
747
def
forward(self, x):
748
return
self.func(x)
749
750
751
def
preprocess(x):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected