---
title: "ClikaRT::graph::DynamicAxis"
sidebar_label: "DynamicAxis"
description: "One axis declared dynamic ahead of capture, the zero-re-capture road for an axis known to vary call to call (a batch size, a sequence length)."
---

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

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

**Header:** `ClikaRT/graph/compile.h`

One axis declared dynamic ahead of capture, the zero-re-capture road for an axis known to vary call to call (a batch size, a sequence length). [`input`](./DynamicAxis.md#input) selects by input name (a signature name, or the positional default "input\_0", "input\_1", …); empty applies to every input that has the axis. A non-empty [`name`](./DynamicAxis.md#name) also names the dimension: the same name on two axes declares the same size, exactly as [`spec::TensorSpec::dim_names`](../spec/TensorSpec.md#dim_names).

## Data members

### input {#input}

<div class="api-signature">

`std::string` **`input`**

</div>

input name; empty = every input with this axis

<div class="api-declared">

Declared in `ClikaRT/graph/compile.h`, line 98

</div>

### axis {#axis}

<div class="api-signature">

`std::int32_t` **`axis`** `= 0`

</div>

0-based dimension index

<div class="api-declared">

Declared in `ClikaRT/graph/compile.h`, line 99

</div>

### name {#name}

<div class="api-signature">

`std::string` **`name`**

</div>

optional shared dimension name

<div class="api-declared">

Declared in `ClikaRT/graph/compile.h`, line 100

</div>
