sciai.utils.str2datatype

View Source On Gitee
sciai.utils.str2datatype(type_str)[source]

Map from float data type string to MindSpore data type.

Parameters

type_str (str) – Float data type string.

Returns

dtype, MindSpore Tensor data type.