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

Method __init__

backends/nxp/tests/models.py:850–858  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

848
849class MLP(torch.nn.Module):
850 def __init__(self):
851 super().__init__()
852 self.sequential = torch.nn.Sequential(
853 torch.nn.Linear(1, 10),
854 torch.nn.ReLU(),
855 torch.nn.Linear(10, 10),
856 torch.nn.ReLU(),
857 torch.nn.Linear(10, 1),
858 )
859
860 def forward(self, x):
861 return self.sequential(x)

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected