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

Method __init__

exir/tests/test_print_program.py:18–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 def test_inspect_node(self) -> None:
17 class TestModel(torch.nn.Module):
18 def __init__(self):
19 super().__init__()
20 self.conv1 = torch.nn.Conv2d(32, 32, 1)
21 self.conv2 = torch.nn.Conv2d(32, 32, 1)
22 self.conv3 = torch.nn.Conv2d(32, 32, 1)
23 self.gelu = torch.nn.GELU()
24
25 def forward(self, x: torch.Tensor):
26 a = self.conv1(x)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected