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

Function test_tensor_struct_info

tests/python/relax/test_tvmscript_printer_relax.py:208–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206
207
208def test_tensor_struct_info():
209 obj = relax.TensorStructInfo(
210 shape=relax.ShapeExpr([1, tirx.Var("a", "int64"), 3]),
211 dtype="float32",
212 )
213 _assert_print(
214 obj,
215 """
216a = T.int64()
217R.Tensor((1, a, 3), dtype="float32")
218""",
219 )
220
221
222def test_tuple_struct_info_empty():

Callers

nothing calls this directly

Calls 1

_assert_printFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…