Skip to content

Commit a13c4c3

Browse files
committed
Get default floating type based on device from input array
1 parent ac62396 commit a13c4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/dpnp_iface_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ def var(
14331433
if dpnp.issubdtype(a.dtype, dpnp.complexfloating) or mean is not None:
14341434
# cast bool and integer types to default floating type
14351435
if dtype is None and not dpnp.issubdtype(a.dtype, dpnp.inexact):
1436-
dtype = dpnp.default_float_type()
1436+
dtype = dpnp.default_float_type(device=a.device)
14371437

14381438
if mean is not None:
14391439
arrmean = mean

0 commit comments

Comments
 (0)