Skip to content

Commit 83a272c

Browse files
committed
fix issues
1 parent da83cea commit 83a272c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnx_diagnostic/helpers/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ def max_diff(
872872
_index: int = 0,
873873
allow_unique_tensor_with_list_of_one_element: bool = True,
874874
hist: Optional[Union[bool, List[float]]] = None,
875-
) -> Dict[str, Union[float, str, int, Tuple[int, ...]]]:
875+
) -> Dict[str, Union[float, int, Tuple[int, ...]]]:
876876
"""
877877
Returns the maximum discrepancy.
878878
@@ -1221,7 +1221,7 @@ def max_diff(
12211221
f"_index={_index}"
12221222
)
12231223

1224-
res: Dict[str, Union[str, int, float, Tuple[int, ...]]] = dict(
1224+
res: Dict[str, Union[int, float, Tuple[int, ...]]] = dict(
12251225
abs=abs_diff, rel=rel_diff, sum=sum_diff, n=n_diff, dnan=nan_diff, argm=argm
12261226
)
12271227
if hist:
@@ -1332,7 +1332,7 @@ def max_diff(
13321332
f"_index={_index}"
13331333
)
13341334

1335-
res: Dict[str, Union[str, int, float, Tuple[int, ...]]] = dict(
1335+
res: Dict[str, Union[int, float, Tuple[int, ...]]] = dict(
13361336
abs=abs_diff, rel=rel_diff, sum=sum_diff, n=n_diff, dnan=nan_diff, argm=argm
13371337
)
13381338
if hist:

0 commit comments

Comments
 (0)