mindspore/docs/api/api_python/ops/mindspore.ops.SparseGatherV...

19 lines
645 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.SparseGatherV2
============================
.. py:class:: mindspore.ops.SparseGatherV2
基于指定的索引和axis返回输入Tensor的切片。
输入:
- **input_params** (Tensor) - 被切片的Tensor。shape :math:`(x_1, x_2, ..., x_R)`
- **input_indices** (Tensor)- shape :math:`(y_1, y_2, ..., y_S)`
指定切片的索引,取值须在 `[0, input_params.shape[axis])` 范围内。
- **axis** (int) - 进行索引的axis。
输出:
Tensorshape :math:`(z_1, z_2, ..., z_N)`
异常:
- **TypeError** - `axis` 不是int类型。