MCPcopy 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
7class 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

forwardMethod · 0.95

Calls 1

cosMethod · 0.45

Tested by

no test coverage detected