Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ foo
Method
foo
torch/_export/db/examples/cond_branch_class_method.py:8–9 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
6
7
class
MySubModule(torch.nn.Module):
8
def
foo(self, x):
9
return
x.cos()
10
11
def
forward(self, x):
12
return
self.foo(x)
Callers
1
forward
Method · 0.95
Calls
1
cos
Method · 0.45
Tested by
no test coverage detected