MemorySegmentTensorData

constructor(shape: Shape, arena: Arena, alignment: Long = 64)(source)

Allocates a new off-heap segment from arena with the given alignment.


constructor(shape: Shape, segment: MemorySegment, byteOffset: Long = 0)(source)

Wraps an existing segment region starting at byteOffset (zero-copy slice).