Skip to content

Commit ea75c6e

Browse files
ethanwee1jithunnair-amd
authored andcommitted
[release/2.6] Update test_binary_ufuncs.py after numpy upgrade (#2287)
1 parent 4ca3363 commit ea75c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_binary_ufuncs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ def to_np(value):
14461446
try:
14471447
np_res = np.power(to_np(base), to_np(np_exponent))
14481448
expected = (
1449-
torch.from_numpy(np_res)
1449+
torch.from_numpy(np_res).to(dtype=base.dtype)
14501450
if isinstance(np_res, np.ndarray)
14511451
else torch.tensor(np_res, dtype=base.dtype)
14521452
)

0 commit comments

Comments
 (0)