@@ -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