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

Function run_conv2d

imperative/python/test/unit/quantization/test_op.py:116–123  ·  view source on GitHub ↗
(inp, w, b)

Source from the content-addressed store, hash-verified

114 return var
115
116 def run_conv2d(inp, w, b):
117 O = F.conv2d(
118 inp, w, b if has_bias else None, stride=(SH, SW), padding=(PH, PW),
119 )
120 if nonlinear_mode == "relu":
121 return F.relu(O)
122 else:
123 return O
124
125 def run_conv_bias(inp, w, b, format="NCHW"):
126 b = b if has_bias else mge.Parameter(np.zeros_like(b.numpy()))

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected