MCPcopy Create free account
hub / github.com/pytorch/executorch / ETKernelKeyOpArgMeta

Class ETKernelKeyOpArgMeta

codegen/model.py:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40@dataclass(frozen=True)
41class 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)

Callers 1

gen_from_yamlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected