mindspore.Tensor.double
- Tensor.double()[source]
Converts input tensor dtype to float64.
- Returns
Tensor, converted to the float64 dtype.
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import numpy as np >>> import mindspore >>> from mindspore import Tensor >>> input_x = Tensor(np.ones([2,2]), mindspore.int32) >>> output = input_x.double() >>> print(output.dtype) Float64