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

Commitf07bb4b

Browse files
committed
remove numpy.array_api
1 parent0c8703a commitf07bb4b

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

‎_unittests/ut_array_api/test_hypothesis_array_api.py‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
importunittest
2-
importwarnings
32
fromosimportgetenv
43
fromfunctoolsimportreduce
54
importpackaging.versionaspv
@@ -45,12 +44,7 @@ class TestHypothesisArraysApis(ExtTestCase):
4544

4645
@classmethod
4746
defsetUpClass(cls):
48-
try:
49-
importarray_api_strictasxp
50-
exceptImportError:
51-
withwarnings.catch_warnings():
52-
warnings.simplefilter("ignore")
53-
fromnumpyimportarray_apiasxp
47+
importarray_api_strictasxp
5448

5549
api_version=getenv(
5650
"ARRAY_API_TESTS_VERSION",

‎onnx_array_api/array_api/_onnx_common.py‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
fromtypingimportAny,Optional
2-
importwarnings
32
importnumpyasnp
43
fromonnximportTensorProto
5-
6-
try:
7-
importarray_api_strict
8-
9-
Array=type(array_api_strict.ones((1,)))
10-
exceptImportError:
11-
withwarnings.catch_warnings():
12-
warnings.simplefilter("ignore")
13-
fromnumpy.array_api._array_objectimportArray
4+
importarray_api_strict
145

156
from ..npx.npx_typesimport (
167
DType,
@@ -36,6 +27,9 @@
3627
)
3728

3829

30+
Array=type(array_api_strict.ones((1,)))
31+
32+
3933
# These functions with no specific code do not have to be
4034
# implemented. They are automatically added in
4135
# :mod:`onnx_array_api.array_api`. It needs

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp