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

Function is_node

backends/xnnpack/utils/utils.py:43–47  ·  view source on GitHub ↗

returns true if node is a torch.fx.Node, otherwise false

(node: Any)

Source from the content-addressed store, hash-verified

41
42
43def is_node(node: Any) -> bool:
44 """
45 returns true if node is a torch.fx.Node, otherwise false
46 """
47 return isinstance(node, torch.fx.Node)
48
49
50def is_getitem(node: torch.fx.Node) -> bool:

Callers 1

_get_act_depsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected