17 lines
422 B
ReStructuredText
17 lines
422 B
ReStructuredText
mindspore.ops.narrow
|
|
=====================
|
|
|
|
.. py:function:: mindspore.ops.narrow(input, axis, start, length)
|
|
|
|
沿指定轴 `axis` ,从 `start` 位置截取长度为 `length` 的tensor。
|
|
|
|
参数:
|
|
- **input** (Tensor) - 输入tensor。
|
|
- **axis** (int) - 指定轴。
|
|
- **start** (int) - 指定起始位置。
|
|
- **length** (int) - 指定长度。
|
|
|
|
返回:
|
|
Tensor
|
|
|