提交 7367e72d 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!5094 Fix sliceOp API

Merge pull request !5094 from h.farahat/master
...@@ -85,6 +85,7 @@ class Slice(cde.SliceOp): ...@@ -85,6 +85,7 @@ class Slice(cde.SliceOp):
slices(Union[int, list(int), slice, None, Ellipses]): slices(Union[int, list(int), slice, None, Ellipses]):
Maximum `n` number of arguments to slice a tensor of rank `n`. Maximum `n` number of arguments to slice a tensor of rank `n`.
One object in slices can be one of: One object in slices can be one of:
1. :py:obj:`int`: Slice this index only. Negative index is supported. 1. :py:obj:`int`: Slice this index only. Negative index is supported.
2. :py:obj:`list(int)`: Slice these indices ion the list only. Negative indices are supported. 2. :py:obj:`list(int)`: Slice these indices ion the list only. Negative indices are supported.
3. :py:obj:`slice`: Slice the generated indices from the slice object. Similar to `start:stop:step`. 3. :py:obj:`slice`: Slice the generated indices from the slice object. Similar to `start:stop:step`.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册