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

Method __init__

coremltools/test/optimize/api/test_optimize_api.py:25–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23
24 class Model(torch.nn.Module):
25 def __init__(self):
26 super(Model, self).__init__()
27 self.conv1 = torch.nn.Conv2d(3, 128, (1, 1))
28 self.conv2 = torch.nn.Conv2d(128, 256, (10, 10))
29 self.conv3 = torch.nn.Conv2d(256, 26, (10, 10))
30 self.linear = torch.nn.Linear(206, 12)
31
32 def forward(self, x):
33 x = self.conv1(x)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected