(data)
| 81 | |
| 82 | # Helper functions |
| 83 | def _numpy_to_sinfo(data): |
| 84 | if isinstance(data, list): |
| 85 | return relax.TupleStructInfo([_numpy_to_sinfo(d) for d in data]) |
| 86 | return relax.TensorStructInfo(data.shape, str(data.dtype)) |
| 87 | |
| 88 | def _numpy_to_tvm(data): |
| 89 | if isinstance(data, list): |
no test coverage detected
searching dependent graphs…