Skip to main content

ClikaRT::io::AdaptRename

struct

Header: ClikaRT/io/tensors_container.h

One key rename: the entry under from appears under to; metadata only (byte range, laziness, and quantization metadata are preserved). reverse_dims additionally relabels a DENSE ≥2-D entry's shape with its dims reversed, the row-contiguous-first export re-labeled to the C order a consumer's slots declare; a quantized payload's logical shape is already row-contiguous-first, so the flag passes it through unchanged. The relabel is this explicit flag, never implicit.

Data members

from

std::string from

checkpoint-side tensor name

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

to

std::string to

the name your code binds

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

reverse_dims

bool reverse_dims = false

also reverse the dim order while adapting

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