MemorySegmentBackedData

Marker interface for tensor data backed by a MemorySegment. Backends can check for this interface to use MemorySegment-based SIMD operations (e.g. FloatVector.fromMemorySegment) instead of array-based ops.

Inheritors

Properties

Link copied to clipboard
abstract val segment: MemorySegment

The underlying off-heap memory segment.

Link copied to clipboard
abstract val segmentByteOffset: Long

Byte offset into segment where this tensor's data starts.