lib/tensor_stream/ops.rb
def slice(input, start, size, name: nil)
      _op(:slice, input, start, size: size, name: name)
    end
def slice(input, start, size, name: nil)
      _op(:slice, input, start, size: size, name: name)
    end
Extracts a slice from a tensor.

 This operation extracts a slice of size size from a tensor input starting at the location specified by begin.
 The slice size is represented as a tensor shape, where size[i] is the number of elements of the 'i'th dimension of input that you want to slice. The starting location (begin) for the slice is
 represented as an offset in each dimension of input. In other words, begin[i] is the offset into the 'i'th dimension of input that you want to slice from.