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

Method __init__

exir/program/test/test_program.py:299–302  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 def test_while(self):
298 class M(torch.nn.Module):
299 def __init__(self) -> None:
300 super().__init__()
301 self.linear = torch.nn.Linear(2, 2)
302 self.dec = torch.nn.Buffer(torch.tensor(1))
303
304 def forward(self, iter, x):
305 def cond_fn(it, x):

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
BufferMethod · 0.45

Tested by

no test coverage detected