MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / __init__

Method __init__

imperative/python/test/unit/quantization/test_quantize.py:272–275  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

270def test_disable_quantize():
271 class Net(Float.Module):
272 def __init__(self):
273 super().__init__()
274 self.conv = Float.ConvBnRelu2d(3, 3, 3)
275 self.conv.disable_quantize()
276
277 def forward(self, x):
278 return self.conv(x)

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 2

FloatExampleClass · 0.85
disable_quantizeMethod · 0.80

Tested by

no test coverage detected