mindspore.pytype_to_dtype ========================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/mindspore/mindspore.pytype_to_dtype.rst :alt: 查看源文件 .. py:function:: mindspore.pytype_to_dtype(obj) 将Python数据类型转换为MindSpore数据类型。 参数: - **obj** (type) - Python数据对象。 返回: MindSpore的数据类型。 异常: - **NotImplementedError** - Python类型无法转换为MindSpore类型。