mindspore.numpy.result_type =========================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://atomgit.com/mindspore/mindspore/blob/master/docs/api/api_python/numpy/mindspore.numpy.result_type.rst :alt: 查看源文件 .. py:function:: mindspore.numpy.result_type(*arrays_and_dtypes) 返回对入参使用类型提升规则所得的类型。 .. note:: 提升规则与原版 NumPy 略有不同,更类似于 jax,因为更倾向于 32 位而不是 64 位数据类型。复数类型不支持。 参数: - **\*arrays_and_dtypes** (Union[int, float, bool, list, tuple, Tensor, mindspore.dtype, str]) - 需要得到类型结果的操作数。 返回: mindspore.dtype,结果类型。 异常: - **TypeError** - 如果输入不是有效的数据类型。