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

Function make_shape

python/tvm/relax/expr.py:715–721  ·  view source on GitHub ↗
(shape: list[Any] | tuple[Any, ...])

Source from the content-addressed store, hash-verified

713
714
715def make_shape(shape: list[Any] | tuple[Any, ...]) -> ShapeExpr:
716 if isinstance(shape, list | tuple):
717 return ShapeExpr(shape)
718 raise TypeError(
719 "make_shape expects a list or tuple of shape values, "
720 f"but received type {type(shape).__name__}"
721 )
722
723
724@tvm_ffi.register_object("relax.expr.Constant")

Callers 5

test_make_shapeFunction · 0.85
checkFunction · 0.85

Calls 1

ShapeExprClass · 0.85

Tested by 5

test_make_shapeFunction · 0.68
checkFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…