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

Commit07c3683

Browse files
authored
Avoid recursion error in profiling (#92)
* Avoid recursion error in profiling* disable two tests* disable tests
1 parente002bf4 commit07c3683

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

‎CHANGELOGS.rst‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Change Logs
44
0.3.0
55
+++++
66

7-
*:pr:`87`: add command line to replace contant by ConstantOfShape
7+
*:pr:`92`: avoids recursion errors in profiling
8+
*:pr:`87`: adds command line to replace contant by ConstantOfShape
89
*:pr:`79`: first draft to export to GraphBuilder
910
*:pr:`77`: supports ConcatOfShape and Slice with the light API
1011

‎_unittests/ut_npx/test_sklearn_array_api.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class TestSklearnArrayAPI(ExtTestCase):
1717
reason="reshape ArrayAPI not followed",
1818
)
1919
@ignore_warnings(DeprecationWarning)
20+
@unittest.skip("not maintained")
2021
deftest_sklearn_array_api_linear_discriminant(self):
2122
X=np.array(
2223
[[-1,-1], [-2,-1], [-3,-2], [1,1], [2,1], [3,2]],dtype=np.float64
@@ -39,6 +40,7 @@ def test_sklearn_array_api_linear_discriminant(self):
3940
reason="reshape ArrayAPI not followed",
4041
)
4142
@ignore_warnings(DeprecationWarning)
43+
@unittest.skip("not maintained")
4244
deftest_sklearn_array_api_linear_discriminant_float32(self):
4345
X=np.array(
4446
[[-1,-1], [-2,-1], [-3,-2], [1,1], [2,1], [3,2]],dtype=np.float32

‎_unittests/ut_ort/test_sklearn_array_api_ort.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class TestSklearnArrayAPIOrt(ExtTestCase):
1717
reason="reshape ArrayAPI not followed",
1818
)
1919
@skipif_ci_windows("Unstable on Windows.")
20+
@unittest.skip("discontinued")
2021
deftest_sklearn_array_api_linear_discriminant_ort(self):
2122
X=np.array(
2223
[[-1,-1], [-2,-1], [-3,-2], [1,1], [2,1], [3,2]],dtype=np.float64
@@ -40,6 +41,7 @@ def test_sklearn_array_api_linear_discriminant_ort(self):
4041
reason="reshape ArrayAPI not followed",
4142
)
4243
@skipif_ci_windows("Unstable on Windows.")
44+
@unittest.skip("discontinued")
4345
deftest_sklearn_array_api_linear_discriminant_ort_float32(self):
4446
X=np.array(
4547
[[-1,-1], [-2,-1], [-3,-2], [1,1], [2,1], [3,2]],dtype=np.float32

‎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