sponge.function.get_ms_array ================================ .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindscience/blob/master/MindSPONGE/docs/api/api_python/function/sponge.function.get_ms_array.rst :alt: 查看源文件 .. py:function:: sponge.function.get_ms_array(value: Union[float, int, Tensor, Parameter, ndarray, list, tuple], dtype: type = None) 获取输入值的mindspore.Tensor类型 参数: - **value** (Union[float, int, Tensor, Parameter, ndarray, list, tuple]) - 输入值 - **dtype** (type) - 数据类型。默认值: ``None``。 返回: Tensor 或 Parameter。数组。