We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac62396 commit a13c4c3Copy full SHA for a13c4c3
dpnp/dpnp_iface_statistics.py
@@ -1433,7 +1433,7 @@ def var(
1433
if dpnp.issubdtype(a.dtype, dpnp.complexfloating) or mean is not None:
1434
# cast bool and integer types to default floating type
1435
if dtype is None and not dpnp.issubdtype(a.dtype, dpnp.inexact):
1436
- dtype = dpnp.default_float_type()
+ dtype = dpnp.default_float_type(device=a.device)
1437
1438
if mean is not None:
1439
arrmean = mean
0 commit comments