MCPcopy Create free account
hub / github.com/pytorch/examples / forward

Method forward

fx/primitive_library.py:46–49  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

44
45class Foo(torch.nn.Module):
46 def forward(self, x, y):
47 x = sigmoid_lowp(x)
48 y = sigmoid_lowp(y)
49 return add_lowp(x, y)
50
51
52traced = torch.fx.symbolic_trace(Foo())

Callers

nothing calls this directly

Calls 2

sigmoid_lowpFunction · 0.85
add_lowpFunction · 0.85

Tested by

no test coverage detected