MCPcopy Index your code
hub / github.com/apache/tvm / test_resize3d

Function test_resize3d

tests/python/relax/test_tvmscript_parser_op_image.py:52–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def test_resize3d():
53 @R.function
54 def foo(x: R.Tensor((2, 3, 8, 8, 8), "float32")) -> R.Tensor((2, 3, 4, 6, 7), "float32"):
55 gv: R.Tensor((2, 3, 4, 6, 7), "float32") = R.image.resize3d(
56 x, size=(4, 6, 7), layout="NCDHW"
57 )
58 return gv
59
60 bb = relax.BlockBuilder()
61 x = relax.Var("x", R.Tensor((2, 3, 8, 8, 8), "float32"))
62 with bb.function("foo", [x]):
63 gv = bb.emit(relax.op.image.resize3d(x, (4, 6, 7), layout="NCDHW"))
64 bb.emit_func_output(gv)
65
66 _check(foo, bb.get()["foo"])
67
68
69if __name__ == "__main__":

Callers

nothing calls this directly

Calls 6

functionMethod · 0.95
emitMethod · 0.95
emit_func_outputMethod · 0.95
getMethod · 0.95
TensorMethod · 0.80
_checkFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…