mindspore.ops.numel ==================== .. 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/ops/mindspore.ops.func_numel.rst :alt: 查看源文件 .. py:function:: mindspore.ops.numel(input) 返回Tensor的元素的总数量。 参数: - **input** (Tensor) - 输入Tensor。 返回: int。Tensor的元素的总数量。 异常: - **TypeError** - `input` 不是Tensor。