2.3K Star 8.1K Fork 4.3K

GVPMindSpore / mindspore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mindspore.Tensor.stride.rst 501 Bytes
一键复制 编辑 原始数据 按行查看 历史
宦晓玲 提交于 2024-02-21 15:46 . modify the dtype 2.3

mindspore.Tensor.stride

.. py:method:: mindspore.Tensor.stride(dim=None)

    在指定维度 `dim中` 从一个元素跳到下一个元素所必需的步长。当没有参数传入时,返回所有维度的步长的列表。

    参数:
        - **dim** (int) - 指定的维度。

    返回:
        int,返回在指定维度下,从一个元素调到下一个元素所必需的步长。

    异常:
        - **TypeError** - `dim` 不是int。
Python
1
https://gitee.com/mindspore/mindspore.git
git@gitee.com:mindspore/mindspore.git
mindspore
mindspore
mindspore
master

搜索帮助