mindspore.ops.narrow ===================== .. 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_narrow.rst :alt: 查看源文件 .. py:function:: mindspore.ops.narrow(input, axis, start, length) 沿指定轴 `axis` ,从 `start` 位置截取长度为 `length` 的tensor。 参数: - **input** (Tensor) - 输入tensor。 - **axis** (int) - 指定轴。 - **start** (int) - 指定起始位置。 - **length** (int) - 指定长度。 返回: Tensor