(t:Tensor)
| 360 | } |
| 361 | |
| 362 | def _to_python_const(t:Tensor) -> list[ConstType]|ConstType|bytes: |
| 363 | return t.data().tobytes() if t.dtype == dtypes.uint8 else cast(list[ConstType]|ConstType, t.tolist()) |
| 364 | |
| 365 | # ***** runner ****** |
| 366 | debug = int(getenv("DEBUGONNX", "0")) |