MemorySegmentTensorDataFactory
class MemorySegmentTensorDataFactory(arena: Arena = Arena.ofShared(), alignment: Long = 64) : TensorDataFactory, AutoCloseable(source)
A TensorDataFactory that produces MemorySegmentTensorData tensors, keeping all data off-heap for SIMD-friendly access.
The factory manages a shared Arena whose lifetime should be tied to the owning execution context.
Functions
Link copied to clipboard
Link copied to clipboard
open override fun <T : DType, V> fromFloatArray(shape: Shape, dtype: KClass<T>, data: FloatArray): TensorData<T, V>
Link copied to clipboard
Link copied to clipboard