Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
71
def
has_no_users(node: Node) -> bool:
72
return
len(node.users) == 0
73
74
75
def
extract_lifted_tensor_constant(node: Node) -> Optional[float]:
Callers
3
test_has_users
Method · 0.90
test_no_users_after_removal
Method · 0.90
remove_body_nodes
Method · 0.85
Calls
no outgoing calls
Tested by
2
test_has_users
Method · 0.72
test_no_users_after_removal
Method · 0.72