Versioned name: StridedSlice-1
Category: Data movement operation
Short description: StridedSlice extracts a strided slice of a tensor. It is similar to generalized array indexing in Python*.
Attributes
begin
input is ignored and the 'real' beginning of the tensor is used along corresponding dimension.0
s and 1
sint[]
end
input is ignored and the real 'end' of the tensor is used along corresponding dimension.0
s and 1
sint[]
i
-th position of input tensor.0
s and 1
sint[]
[0]
i
-th position is deleted.0
s and 1
sint[]
[0]
0
s and 1
. Only one non-zero bit is allowed.int[]
[0]
Inputs:
begin
input - 1D input tensor with begin indexes for input tensor slicing. Required. Out-of-bounds values are silently clamped. If begin_mask[i]
is 1, the value of begin[i]
is ignored and the range of the appropriate dimension starts from 0. Negative values mean indexing starts from the end. For example, if foo=[1,2,3]
, begin[0]=-1
means begin[0]=3
.end
input - 1D input tensor with end indexes for input tensor slicing. Required. Out-of-bounds values will be silently clamped. If end_mask[i]
is 1, the value of end[i]
is ignored and the full range of the appropriate dimension is used instead. Negative values mean indexing starts from the end. For example, if foo=[1,2,3]
, end[0]=-1
means end[0]=3
.stride
input - 1D input tensor with strides. Optional.Example