Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ forward
Method
forward
torch/_export/db/examples/user_input_mutation.py:16–18 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
14
""
"
15
16
def
forward(self, x):
17
x.mul_(2)
18
return
x.cos()
Callers
nothing calls this directly
Calls
1
cos
Method · 0.45
Tested by
no test coverage detected