Skip to content

Commit bf55d44

Browse files
committed
Replace np.find_common_type with np.result_type
1 parent 5cef8fb commit bf55d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tensor/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def upcast_float16_ufunc(fn):
152152
"""
153153

154154
def ret(*args, **kwargs):
155-
out_dtype = np.find_common_type([a.dtype for a in args], [np.float16])
155+
out_dtype = np.result_type(np.float16, *args)
156156
if out_dtype == "float16":
157157
# Force everything to float32
158158
sig = "f" * fn.nin + "->" + "f" * fn.nout

0 commit comments

Comments
 (0)