MCPcopy
hub / github.com/OpenPPL/ppq / forward

Method forward

tests/test_layerwise_equalization.py:61–68  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

59 self.convtranspose3.bias.copy_(torch.rand_like(self.convtranspose3.bias))
60
61 def forward(self, x: torch.Tensor) -> torch.Tensor:
62 x = self.conv1(x)
63 x = self.conv2(x)
64 x = self.conv3(x)
65 x = self.convtranspose1(x)
66 x = self.convtranspose2(x)
67 x = self.convtranspose3(x)
68 return x
69
70model = MyModel().cuda()
71dump_torch_to_onnx(model=model, onnx_export_file='model.onnx', input_shape=[1, 8, 96, 96])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected