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

Class DequantStub

imperative/python/megengine/module/quant_dequant.py:13–19  ·  view source on GitHub ↗

r"""A helper :class:`~.Module` simply returning input. Could be replaced with :class:`~.QATModule` version :class:`~.qat.DequantStub` using :func:`~.quantize.quantize_qat`.

Source from the content-addressed store, hash-verified

11
12
13class DequantStub(Module):
14 r"""A helper :class:`~.Module` simply returning input. Could be replaced with :class:`~.QATModule`
15 version :class:`~.qat.DequantStub` using :func:`~.quantize.quantize_qat`.
16 """
17
18 def forward(self, inp):
19 return inp

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by 1

__init__Method · 0.72