MCPcopy Create free account
hub / github.com/apple/coremltools / __init__

Method __init__

coremltools/test/ml_program/test_utils.py:1519–1523  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1517 # pytorch model and tracing
1518 class Model(torch.nn.Module):
1519 def __init__(self):
1520 super().__init__()
1521 self.linear1 = torch.nn.Linear(6000, 6000)
1522 self.relu = torch.nn.ReLU()
1523 self.linear2 = torch.nn.Linear(6000, 6000)
1524
1525 def forward(self, x):
1526 x = self.linear1(x)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected