Skip to content

Commit 6127e78

Browse files
authored
Update slice.rst (#704)
1 parent e2cb0de commit 6127e78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs_input/api/manipulation/basic/slice.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Slice an operator with new start and end points, and optionally new strides. Sli
77
be used to drop ranks, for operations such as selecting a single row. Negative indices can be used
88
to indicate starting at the end and going backward.
99

10+
When slicing along any given tensor dimension, the start index is treated as inclusive, and the end index as exclusive.
11+
1012
.. doxygenfunction:: slice(const OpType opIn, const index_t (&starts)[OpType::Rank()], const index_t (&ends)[OpType::Rank()])
1113
.. doxygenfunction:: slice(const OpType op, const index_t (&starts)[OpType::Rank()], const index_t (&ends)[OpType::Rank()], const index_t (&strides)[OpType::Rank()])
1214

0 commit comments

Comments
 (0)