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

Class ConvBn2d

imperative/python/megengine/module/conv_bn.py:47–54  ·  view source on GitHub ↗

r"""A fused :class:`~.Module` including :class:`~.module.Conv2d` and :class:`~.module.BatchNorm2d`. Could be replaced with :class:`~.QATModule` version :class:`~.qat.ConvBn2d` using :func:`~.quantize.quantize_qat`.

Source from the content-addressed store, hash-verified

45
46
47class ConvBn2d(_ConvBnActivation2d):
48 r"""A fused :class:`~.Module` including :class:`~.module.Conv2d` and :class:`~.module.BatchNorm2d`.
49 Could be replaced with :class:`~.QATModule` version :class:`~.qat.ConvBn2d` using
50 :func:`~.quantize.quantize_qat`.
51 """
52
53 def forward(self, inp):
54 return self.bn(self.conv(inp))
55
56
57class ConvBnRelu2d(_ConvBnActivation2d):

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by 1

__init__Method · 0.72