Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/examples
/ M
Class
M
fx/replace_op.py:32–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
30
31
# Sample module
32
class
M(torch.nn.Module):
33
def
forward(self, x, y):
34
return
x + y, torch.add(x, y), x.add(y)
35
36
# Symbolically trace an instance of the module
37
traced = symbolic_trace(M())
Callers
1
replace_op.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected