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

Class ATenDebugSchema

backends/arm/debug/schema.py:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28@dataclass
29class ATenDebugSchema:
30 node_name: str
31 operator_name: str
32
33 @staticmethod
34 def from_node(node: torch.fx.Node) -> ATenDebugSchema:
35 # node.target is Union[Callable[..., Any], str], so we need to access this correctly depending on the type
36 if callable(node.target):
37 operator_name = node.target.__name__
38 else:
39 operator_name = node.target
40
41 return ATenDebugSchema(node_name=node.name, operator_name=operator_name)
42
43
44@dataclass

Callers 1

from_nodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected