We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e002bf4 commit b94eb3fCopy full SHA for b94eb3f
onnx_array_api/profiling.py
@@ -73,8 +73,8 @@ def _get_root(node, stor=None):
73
stor.append(node)
74
if not node.called_by:
75
return node
76
- if len(node.called_by) == 1:
77
- return _get_root(node.called_by[0], stor=stor)
+ if len(node.called_by) == 0:
+ return None
78
res = None
79
for ct in node.called_by:
80
k = id(node), id(ct)
0 commit comments