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

Commit71b7290

Browse files
committed
delay import
1 parent4820d65 commit71b7290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎onnx_array_api/npx/npx_functions.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
fromtypingimportTuple,Union
2-
importarray_api_compat.numpyasnp_array_api
32
importnumpyasnp
43
fromonnximportFunctionProto,ModelProto,NodeProto,TensorProto
54
fromonnx.helperimportmake_tensor,tensor_dtype_to_np_dtype
@@ -624,6 +623,7 @@ def isdtype(
624623
See :epkg:`BaseArrayAPI:isdtype`.
625624
This function is not converted into an onnx graph.
626625
"""
626+
importarray_api_compat.numpyasnp_array_api
627627
ifisinstance(dtype,DType):
628628
dti=tensor_dtype_to_np_dtype(dtype.code)
629629
returnnp_array_api.isdtype(dti,kind)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp