(symbolic_shape, var_table)
| 64 | |
| 65 | |
| 66 | def _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 = { |
no test coverage detected
searching dependent graphs…