StreamingSafeTensorInfo

data class StreamingSafeTensorInfo(val name: String, val dtype: String, val dataType: DataType, val shape: List<Long>, val elementCount: Long, val dataOffsetStart: Long, val dataOffsetEnd: Long, val sizeInBytes: Int, val absoluteDataOffset: Long)(source)

Tensor metadata for streaming access.

Contains all information needed to describe a tensor without loading its actual data.

Constructors

Link copied to clipboard
constructor(name: String, dtype: String, dataType: DataType, shape: List<Long>, elementCount: Long, dataOffsetStart: Long, dataOffsetEnd: Long, sizeInBytes: Int, absoluteDataOffset: Long)

Properties

Link copied to clipboard

Absolute byte offset in file

Link copied to clipboard

End offset relative to data section

Link copied to clipboard

Start offset relative to data section

Link copied to clipboard

Mapped DataType for unified handling

Link copied to clipboard

SafeTensors dtype string (e.g., "F32", "I64")

Link copied to clipboard

Total number of elements

Link copied to clipboard

Whether this tensor uses an unknown/unsupported data type

Link copied to clipboard

Tensor name (e.g., "model.embed_tokens.weight")

Link copied to clipboard

Tensor dimensions

Link copied to clipboard

Size in bytes