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

Function is_get_attr_node

backends/vulkan/utils.py:177–178  ·  view source on GitHub ↗
(node: torch.fx.Node)

Source from the content-addressed store, hash-verified

175
176
177def is_get_attr_node(node: torch.fx.Node) -> bool:
178 return isinstance(node, torch.fx.Node) and node.op == "get_attr"
179
180
181def is_constant(program: ExportedProgram, node: torch.fx.Node) -> bool:

Callers 2

get_param_tensorMethod · 0.90
is_param_nodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected