TensorInfo
Unified tensor information across all model formats.
This class provides a format-agnostic representation of tensor metadata, enabling consistent handling regardless of the source format (ONNX, GGUF, etc.).
Properties
True if this tensor can be loaded into SKaiNET without conversion
Total number of elements in the tensor
The source model format
Whether this tensor is from a sharded model
The original dtype name from the source format (e.g., "F32", "FLOAT")
Human-readable shape string, e.g., "3, 224, 224"
For sharded models, the 1-based shard index
Formatted shard location, e.g., "1/3"
Size in bytes (null if unknown or variable)
Human-readable size string, e.g., "1.5 MB"
The corresponding SKaiNET DType name, or null if not supported
For sharded models, the shard filename containing this tensor
For sharded models, the total number of shards