mindspore.common.np_dtype
- class mindspore.common.np_dtype
Numpy data type for MindSpore.
The actual path of
np_dtypeis/mindspore/common/np_dtype.py. Run the following command to import the package:from mindspore.common import np_dtype
Numeric Type
Type
Description
bfloat16The
bfloat16data type under NumPy. This type is only used to construct Tensor of typebfloat16, and does not guarantee the full computing power under Numpy. Takes effect only if the version of Numpy at runtime is not less than the version of Numpy at compilation, and the major versions are same.