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

Function func

imperative/python/test/unit/core/test_formatted_tensor.py:56–59  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

54@pytest.mark.parametrize("is_symbolic", [None])
55def test_dimshuffle(is_symbolic):
56 def func(x):
57 out = F.transpose(x, [2, 3, 0, 1])
58 assert out.format == "default"
59 return out.numpy()
60
61 data = np.arange(0, 24).reshape((1, 2, 3, 4))
62 _compare_nchw_nhwc(data, func, is_symbolic)

Callers 3

_compare_nchw_nhwcFunction · 0.70
_compare_backwardFunction · 0.70

Calls 12

use_symbolic_shapeFunction · 0.90
modelFunction · 0.85
broadcast_toMethod · 0.80
onesMethod · 0.80
concatMethod · 0.80
tensorMethod · 0.80
arrayMethod · 0.80
transposeMethod · 0.45
numpyMethod · 0.45
reshapeMethod · 0.45
flattenMethod · 0.45
astypeMethod · 0.45

Tested by

no test coverage detected