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

Function has_node_spec_attr

backends/vulkan/utils.py:1630–1631  ·  view source on GitHub ↗
(node: torch.fx.Node, attr: str)

Source from the content-addressed store, hash-verified

1628
1629
1630def has_node_spec_attr(node: torch.fx.Node, attr: str) -> bool:
1631 return "spec" in node.meta and hasattr(node.meta["spec"], attr)
1632
1633
1634def set_node_spec_attr(node: torch.fx.Node, attr: str, value):

Callers 1

has_node_reprFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected