sciai.utils.datatype2np

View Source On Gitee
sciai.utils.datatype2np(ms_type)[source]

Map from MindSpore data type to numpy data type.

Parameters

ms_type (dtype) – Mindspore Tensor data type.

Returns

numpy.dtype, NumPy data type.