MCPcopy Create free account
hub / github.com/pytorch/pytorch / Module

Class Module

test/export/test_serialize.py:576–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574 linear = torch.nn.Linear(2, 2)
575
576 class Module(torch.nn.Module):
577 def forward(self, x):
578 x = x + 1
579 y = x.t()
580 y = y.relu()
581 y = linear(y)
582 return y
583
584 ep = export(Module(), inp)
585

Callers 2

test_canonicalizeMethod · 0.70
test_save_bufferMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_canonicalizeMethod · 0.56
test_save_bufferMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…