| 39 | |
| 40 | @dataclass(frozen=True) |
| 41 | class ETKernelKeyOpArgMeta: |
| 42 | arg_name: str |
| 43 | dtype: str |
| 44 | # The order of the dimensions if entry is a Tensor |
| 45 | dim_order: tuple[int, ...] |
| 46 | |
| 47 | def to_native_string(self) -> str: |
| 48 | dtype_str = ScalarType[self.dtype].value |
| 49 | dim_str = str(self.dim_order)[1:-1].replace(" ", "") |
| 50 | return f"{dtype_str};{dim_str}" |
| 51 | |
| 52 | |
| 53 | @dataclass(frozen=True) |