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

Method forward

imperative/python/megengine/quantization/utils.py:25–26  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

23 """
24
25 def forward(self, x):
26 return F.round(x)
27
28 def backward(self, output_grads):
29 return output_grads

Callers

nothing calls this directly

Calls 1

roundMethod · 0.45

Tested by

no test coverage detected