Skip to main content

ClikaRT::io::TensorsContainer::Entry

struct

Header: ClikaRT/io/tensors_container.h

One parsed (never materialized) checkpoint entry, the header-only metadata a placement or config probe reads with no payload IO.

Data members

shape

std::vector<std::int64_t> shape

The entry's element shape in FILE order (the row-contiguous dim first). For a QUANTIZED entry this is the LOGICAL element shape (never the packed payload rows), matching the dims a materialized tensor's quantized view reports. A dense entry reports its as-parsed shape (an adaptation's reverse_dims relabel included).

Declared in ClikaRT/io/tensors_container.h, line 144

dtype

STORAGE dtype: the dense element type, or the packed payload's byte type for a block-quantized entry; pair with quantized.

Declared in ClikaRT/io/tensors_container.h, line 147

payload_bytes

std::uint64_t payload_bytes = 0

On-disk payload bytes (what entry_bytes(name) reports).

Declared in ClikaRT/io/tensors_container.h, line 149

quantized

bool quantized = false

True when the entry carries quantization metadata; shape is then the logical element shape and dtype the packed storage type.

Declared in ClikaRT/io/tensors_container.h, line 152