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

Class ETKernelKeyOpArgMeta

torchgen/executorch/model.py:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

gen_from_yamlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…