narrow

abstract fun <T : DType, V> narrow(tensor: Tensor<T, V>, dim: Int, start: Int, length: Int): Tensor<T, V>(source)

Extract a sub-tensor along dimension dim starting at start with the given length.