StreamingOnnxTensorInfo

data class StreamingOnnxTensorInfo(val name: String, val dims: List<Long>, val dataType: Int, val dataTypeName: String, val nElements: Long, val rawDataOffset: Long, val rawDataLength: Int, val estimatedBytes: Int, val hasTypedArrayData: Boolean)(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, dims: List<Long>, dataType: Int, dataTypeName: String, nElements: Long, rawDataOffset: Long, rawDataLength: Int, estimatedBytes: Int, hasTypedArrayData: Boolean)

Properties

Link copied to clipboard

ONNX data type value

Link copied to clipboard

ONNX data type name (e.g., "FLOAT", "INT8")

Link copied to clipboard
val dims: List<Long>

Tensor dimensions

Link copied to clipboard

Estimated size in bytes (from raw_data or calculated)

Link copied to clipboard

True if tensor data is in typed arrays (requires full parsing)

Link copied to clipboard

Tensor name (e.g., "conv1.weight")

Link copied to clipboard

Total number of elements

Link copied to clipboard

Length of raw_data in bytes (0 if not available)

Link copied to clipboard

Byte offset of raw_data in file (-1 if not available)