MCPcopy Create free account
hub / github.com/apache/tvm / test_roi_align_wrong_layout

Function test_roi_align_wrong_layout

tests/python/relax/test_op_vision.py:132–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131
132def test_roi_align_wrong_layout():
133 bb = relax.BlockBuilder()
134 x = relax.Var("x", R.Tensor((2, 3, 32, 32), "float32"))
135 rois = relax.Var("rois", R.Tensor((4, 5), "float32"))
136
137 with pytest.raises(ValueError):
138 bb.normalize(relax.op.vision.roi_align(x, rois, (7, 7), 1.0, layout="HWCN"))
139
140
141def test_roi_align_legalize():

Callers

nothing calls this directly

Calls 2

normalizeMethod · 0.95
TensorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…