Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/executorch
/ has_single_user
Function
has_single_user
backends/mlx/pattern_utils.py:67–68 ·
view source on GitHub ↗
(node: Node)
Source
from the content-addressed store, hash-verified
65
66
67
def
has_single_user(node: Node) -> bool:
68
return
len(node.users) == 1
69
70
71
def
has_no_users(node: Node) -> bool:
Callers
8
maybe_create
Method · 0.90
maybe_create
Method · 0.90
maybe_create
Method · 0.90
maybe_create
Method · 0.90
maybe_create
Method · 0.90
test_single_user
Method · 0.90
test_multiple_users
Method · 0.90
matches
Method · 0.85
Calls
no outgoing calls
Tested by
2
test_single_user
Method · 0.72
test_multiple_users
Method · 0.72