Function autograd::ops::slice [] [src]

pub fn slice(x: &Tensor, starts: &[isize], ends: &[isize]) -> Tensor

Slice op.

Arguments

  • x - Tensor with arbitrary shape.
  • starts - Start indices for each dimensions
  • ends - End indices for each dimensions. -1 representing the last index is acceptable.