wrapIntArray

open fun <T : DType, V> wrapIntArray(shape: Shape, dtype: KClass<T>, data: IntArray): Tensor<T, V>(source)

Wraps an IntArray without copying (borrow semantics). The caller must ensure the array is not mutated while the tensor is in use.