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

Class QuantStub

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

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

Source from the content-addressed store, hash-verified

2
3
4class QuantStub(Module):
5 r"""A helper :class:`~.Module` simply returning input. Could be replaced with :class:`~.QATModule`
6 version :class:`~.qat.QuantStub` using :func:`~.quantize.quantize_qat`.
7 """
8
9 def forward(self, inp):
10 return inp
11
12
13class DequantStub(Module):

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by 1

__init__Method · 0.72