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

Function has_no_users

backends/mlx/pattern_utils.py:71–72  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

69
70
71def has_no_users(node: Node) -> bool:
72 return len(node.users) == 0
73
74
75def extract_lifted_tensor_constant(node: Node) -> Optional[float]:

Callers 3

test_has_usersMethod · 0.90
remove_body_nodesMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_has_usersMethod · 0.72