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

Commitad3f491

Browse files
committed
fix clean
1 parent4a9415a commitad3f491

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎onnx_array_api/profiling.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ def add_rows(rows, d):
437437
stall=0
438438
ifverboseandfLOGisnotNone:
439439
fLOG(
440-
"[pstats] %s=%r"% (clean_text(k[0].replace("\\","/"),*k[1:]),v)
440+
"[pstats] %s=%r"
441+
% ((clean_text(k[0].replace("\\","/")),*k[1:]),v)
441442
)
442443
iflen(v)<5:
443444
continue

‎onnx_array_api/reference/__init__.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
)
1414
exceptImportError:
1515
bfloat16=None
16-
fromonnx.reference.op_runimportto_array_extended
16+
try:
17+
fromonnx.reference.op_runimportto_array_extended
18+
exceptImportError:
19+
fromonnx.numpy_helperimportto_arrayasto_array_extended
1720
from .evaluatorimportExtendedReferenceEvaluator
1821
from .evaluator_yieldimport (
1922
DistanceExecution,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp