MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / forward

Method forward

tools/pytorch-quantization/tests/fixtures/models.py:53–60  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

51 self.fc2 = QuantLinear(50, 10, **kwargs)
52
53 def forward(self, x):
54 x = F.relu(F.max_pool2d(self.conv1(x), 2))
55 x = F.relu(F.max_pool2d(self.conv2(x), 2))
56 x = x.view(-1, 320)
57 x = F.relu(self.fc1(x))
58 x = F.dropout(x, training=self.training)
59 x = self.fc2(x)
60 return F.log_softmax(x, dim=1)
61
62@pytest.fixture
63def resnet18():

Callers

nothing calls this directly

Calls 1

viewMethod · 0.80

Tested by

no test coverage detected