---
title: "ClikaRT::graph::ShapeDomain"
sidebar_label: "ShapeDomain"
description: "One input's admitted shapes: its name, its element type, one DimDomain per dimension, and the axis a benchmark counts items along."
---

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

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

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

One input's admitted shapes: its name, its element type, one [`DimDomain`](./DimDomain.md) per dimension, and the axis a benchmark counts items along.

[`batch_axis`](./ShapeDomain.md#batch_axis) is a guess the report echoes back: the first dimension named `batch`, `batch_size`, `N` or `B`, else the first dynamic dimension, else -1 (no batch axis; a benchmark then counts one item per iteration). [`BenchOptions::batch_axis`](./BenchOptions.md#batch_axis) overrides the guess.

## Data members

### name {#name}

<div class="api-signature">

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

</div>

the input's name

<div class="api-declared">

Declared in `ClikaRT/graph/bench.h`, line 71

</div>

### dtype {#dtype}

<div class="api-signature">

[`DataType`](../../index.md#DataType) **`dtype`** `=` [`DataType::Float32`](../../index.md#DataType)

</div>

the input's element type

<div class="api-declared">

Declared in `ClikaRT/graph/bench.h`, line 72

</div>

### dims {#dims}

<div class="api-signature">

`std::vector<`[`DimDomain`](./DimDomain.md)`>` **`dims`**

</div>

one domain per dimension

<div class="api-declared">

Declared in `ClikaRT/graph/bench.h`, line 73

</div>

### batch\_axis {#batch_axis}

<div class="api-signature">

`std::int32_t` **`batch_axis`** `= -1`

</div>

the guessed batch axis, or -1

<div class="api-declared">

Declared in `ClikaRT/graph/bench.h`, line 74

</div>
