MCPcopy Create free account
hub / github.com/intel/neural-compressor / __init__

Method __init__

test/torch/quantization/test_static_quant.py:31–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

29def build_simple_torch_model():
30 class Model(torch.nn.Module):
31 def __init__(self):
32 super(Model, self).__init__()
33 self.fc1 = torch.nn.Linear(30, 50)
34 self.fc2 = torch.nn.Linear(50, 50)
35 self.fc3 = torch.nn.Linear(50, 30)
36 self.fc4 = torch.nn.Linear(30, 5)
37 self.relu = torch.nn.ReLU()
38
39 def forward(self, x):
40 out = self.fc1(x)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected