MemorySegmentTensorData
Off-heap, 64-byte-aligned tensor data backed by a MemorySegment.
This avoids GC pressure and enables direct use with the Vector API's FloatVector.fromMemorySegment for SIMD-friendly access patterns.
Two constructors:
Primary: allocates a fresh segment via arena.
Secondary (slice): wraps an existing segment region (zero-copy view).
Properties
Functions
Link copied to clipboard
Bulk-copy a FloatArray into this tensor's segment.
Link copied to clipboard
Copies all tensor data to a FloatArray.