MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / test_create_shape_broadcast

Function test_create_shape_broadcast

test/py/test_shape.py:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def test_create_shape_broadcast():
46 s = migraphx.shape(lens=[1, 64, 3, 3], strides=[0, 1, 0, 0])
47 assert s.broadcasted()
48 assert s.lens() == [1, 64, 3, 3]
49 assert s.strides() == [0, 1, 0, 0]
50
51
52def test_create_shape_type():

Callers 1

test_shape.pyFile · 0.85

Calls 3

lensMethod · 0.80
shapeMethod · 0.45
broadcastedMethod · 0.45

Tested by

no test coverage detected