---
title: "ClikaRT::io::AdaptRename"
sidebar_label: "AdaptRename"
description: "One key rename: the entry under from appears under to; metadata only (byte range, laziness, and quantization metadata are preserved)."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--struct">struct</span>

**Header:** `ClikaRT/io/tensors_container.h`

One key rename: the entry under [`from`](./AdaptRename.md#from) appears under [`to`](./AdaptRename.md#to); metadata only (byte range, laziness, and quantization metadata are preserved). [`reverse_dims`](./AdaptRename.md#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 {#from}

<div class="api-signature">

`std::string` **`from`**

</div>

checkpoint-side tensor name

<div class="api-declared">

Declared in `ClikaRT/io/tensors_container.h`, line 252

</div>

### to {#to}

<div class="api-signature">

`std::string` **`to`**

</div>

the name your code binds

<div class="api-declared">

Declared in `ClikaRT/io/tensors_container.h`, line 253

</div>

### reverse\_dims {#reverse_dims}

<div class="api-signature">

`bool` **`reverse_dims`** `= false`

</div>

also reverse the dim order while adapting

<div class="api-declared">

Declared in `ClikaRT/io/tensors_container.h`, line 254

</div>
