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

Method __init__

test/test_mobile_optimizer.py:210–214  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208
209 class OptimizeNoForwardTest(torch.nn.Module):
210 def __init__(self):
211 super().__init__()
212 self.l = nn.Linear(10, 100)
213 self.l2 = nn.Linear(100, 1)
214 self.d = nn.Dropout(p=0.2)
215
216 @torch.jit.export
217 def foo(self, x):

Callers

nothing calls this directly

Calls 2

DropoutMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected