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

Function test_conv

imperative/python/test/unit/utils/test_network_node.py:190–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

188
189
190def test_conv():
191 conv = M.Conv2d(3, 32, 3)
192
193 @trace(symbolic=True, capture_as_const=True)
194 def fwd(data):
195 return conv(data)
196
197 data = Tensor(np.random.random((1, 3, 32, 32)))
198 result = fwd(data)
199 check_pygraph_dump(fwd, [data], [result])
200
201
202def test_deformable_conv():

Callers

nothing calls this directly

Calls 3

TensorClass · 0.90
check_pygraph_dumpFunction · 0.85
fwdFunction · 0.70

Tested by

no test coverage detected