MmapFloatTensorData
class MmapFloatTensorData<T : DType>(initialShape: Shape, buffer: ByteBuffer) : FloatBufferTensorData<T> (source)
Memory-mapped tensor data implementation that provides zero-copy access to tensor data stored in files.
This implementation wraps a region of a memory-mapped file, interpreting the bytes as little-endian 32-bit floats. It provides both:
Direct FloatBuffer access for high-performance vectorized operations
Standard TensorData get/set operations for compatibility
Parameters
T
the data type constraint extending DType
initialShape
the shape of the tensor
buffer
the underlying byte buffer (typically a MappedByteBuffer slice)