indexSelect

abstract fun <T : DType, V> indexSelect(input: Tensor<T, V>, indices: Tensor<DType, *>, dim: Int = 0): Tensor<T, V>(source)

Select elements from input along dim at the given indices. Similar to gather but for general index selection patterns.