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

Commitbd1a441

Browse files
authored
Delay unnecessary import. (#56)
* delay import* lint
1 parent4820d65 commitbd1a441

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎onnx_array_api/npx/npx_functions.py

Lines changed: 2 additions & 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,8 @@ 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
627+
627628
ifisinstance(dtype,DType):
628629
dti=tensor_dtype_to_np_dtype(dtype.code)
629630
returnnp_array_api.isdtype(dti,kind)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp