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

Function has_node_repr

backends/vulkan/utils.py:1679–1683  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

1677
1678
1679def has_node_repr(node) -> bool:
1680 if isinstance(node, (list, tuple)):
1681 return all(has_node_spec_attr(n, "etvk_node_repr") for n in node)
1682 else:
1683 return has_node_spec_attr(node, "etvk_node_repr")
1684
1685
1686def set_node_repr(node: torch.fx.Node, node_repr: Union[TensorRepr, TensorReprList]):

Callers

nothing calls this directly

Calls 1

has_node_spec_attrFunction · 0.85

Tested by

no test coverage detected