Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb94eb3f

Browse files
committed
Avoid recursion error in profiling
1 parente002bf4 commitb94eb3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎onnx_array_api/profiling.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def _get_root(node, stor=None):
7373
stor.append(node)
7474
ifnotnode.called_by:
7575
returnnode
76-
iflen(node.called_by)==1:
77-
return_get_root(node.called_by[0],stor=stor)
76+
iflen(node.called_by)==0:
77+
returnNone
7878
res=None
7979
forctinnode.called_by:
8080
k=id(node),id(ct)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp