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

Method __init__

examples/models/toy_model/model.py:94–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92
93class Conv1dModule(torch.nn.Module, EagerModelBase):
94 def __init__(self):
95 super().__init__()
96 self.conv1d = torch.nn.Conv1d(
97 in_channels=3, out_channels=16, kernel_size=3, padding=1
98 )
99
100 def forward(self, x):
101 return self.conv1d(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected