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

Function _to_concrete_shape

tests/python/relax/test_codegen_hipblas.py:66–77  ·  view source on GitHub ↗
(symbolic_shape, var_table)

Source from the content-addressed store, hash-verified

64
65
66def _to_concrete_shape(symbolic_shape, var_table):
67 result = []
68 for dim in symbolic_shape:
69 if not isinstance(dim, tvm.tirx.expr.Var):
70 result.append(dim)
71 continue
72
73 if dim not in var_table:
74 var_table[dim] = np.random.randint(10, 50)
75 result.append(var_table[dim])
76
77 return tuple(result)
78
79
80_vars = {

Callers 1

test_matmul_offloadFunction · 0.70

Calls 2

tupleFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…