wrapFloatArray

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

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