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

Avoid recursion error in profiling#92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sdpython merged 3 commits intomainfromprofile
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletionCHANGELOGS.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,8 @@ Change Logs
0.3.0
+++++

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

Expand Down
2 changes: 2 additions & 0 deletions_unittests/ut_npx/test_sklearn_array_api.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,6 +17,7 @@ class TestSklearnArrayAPI(ExtTestCase):
reason="reshape ArrayAPI not followed",
)
@ignore_warnings(DeprecationWarning)
@unittest.skip("not maintained")
def test_sklearn_array_api_linear_discriminant(self):
X = np.array(
[[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]], dtype=np.float64
Expand All@@ -39,6 +40,7 @@ def test_sklearn_array_api_linear_discriminant(self):
reason="reshape ArrayAPI not followed",
)
@ignore_warnings(DeprecationWarning)
@unittest.skip("not maintained")
def test_sklearn_array_api_linear_discriminant_float32(self):
X = np.array(
[[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]], dtype=np.float32
Expand Down
2 changes: 2 additions & 0 deletions_unittests/ut_ort/test_sklearn_array_api_ort.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,6 +17,7 @@ class TestSklearnArrayAPIOrt(ExtTestCase):
reason="reshape ArrayAPI not followed",
)
@skipif_ci_windows("Unstable on Windows.")
@unittest.skip("discontinued")
def test_sklearn_array_api_linear_discriminant_ort(self):
X = np.array(
[[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]], dtype=np.float64
Expand All@@ -40,6 +41,7 @@ def test_sklearn_array_api_linear_discriminant_ort(self):
reason="reshape ArrayAPI not followed",
)
@skipif_ci_windows("Unstable on Windows.")
@unittest.skip("discontinued")
def test_sklearn_array_api_linear_discriminant_ort_float32(self):
X = np.array(
[[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]], dtype=np.float32
Expand Down
4 changes: 2 additions & 2 deletionsonnx_array_api/profiling.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -73,8 +73,8 @@ def _get_root(node, stor=None):
stor.append(node)
if not node.called_by:
return node
if len(node.called_by) ==1:
return_get_root(node.called_by[0], stor=stor)
if len(node.called_by) ==0:
returnNone
res = None
for ct in node.called_by:
k = id(node), id(ct)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp