Slice

Slice will cut off a tensor along a given axis by the argument, as configured in the operation edit dialog. For example $\mathrm{slice}(\{x_1,x_2,\ldots x_n\},
3)=\{x_1,x_2,x_3\}$. If the tensor is rank one (ie a vector), it is not necessary to specify the axis.

If the slice argument is negative, then it refers to the number of elements from the end of that axis. For example $\mathrm{slice}(\{x_1,x_2,\ldots x_n\},
-3)=\{x_{n-3},x_{n-2},x_{n-1}\}$.