sponge.function.get_ndarray =============================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/r2.2/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindscience/blob/r0.5/MindSPONGE/docs/api/api_python/function/sponge.function.get_ndarray.rst :alt: 查看源文件 .. py:function:: sponge.function.get_ndarray(value: Union[Tensor, Parameter, ndarray, List[float], Tuple[float]], dtype: type = None) 获取输入的ndarray类型。 参数: - **value** (Union[Tensor, Parameter, ndarray, List[float], Tuple[float]]) - 输入的值。 - **dtype** (type) - 数据类型。默认值: ``None`` 。 返回: ndarray。把输入转换为ndarray类型并返回。