MCPcopy 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
67def has_single_user(node: Node) -> bool:
68 return len(node.users) == 1
69
70
71def has_no_users(node: Node) -> bool:

Callers 8

maybe_createMethod · 0.90
maybe_createMethod · 0.90
maybe_createMethod · 0.90
maybe_createMethod · 0.90
maybe_createMethod · 0.90
test_single_userMethod · 0.90
test_multiple_usersMethod · 0.90
matchesMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_single_userMethod · 0.72
test_multiple_usersMethod · 0.72