---
title: "ClikaRT::io::OnnxAttr"
sidebar_label: "OnnxAttr"
description: "A typed node attribute for add_node: the attribute name plus one of the ONNX attribute kinds: INT, FLOAT, STRING, INTS, or FLOATS."
---

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

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

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

`io::OnnxAttr`: a typed ONNX node attribute, for the calls that write an ONNX node (`io::OnnxModel::add_node`, `graph::OnnxExportWriter::add_node`).

A typed node attribute for `add_node`: the attribute name plus one of the ONNX attribute kinds: INT, FLOAT, STRING, INTS, or FLOATS.

## Data members

### name {#name}

<div class="api-signature">

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

</div>

attribute name

<div class="api-declared">

Declared in `ClikaRT/io/onnx_attr.h`, line 17

</div>

### value {#value}

<div class="api-signature">

`std::variant<std::int64_t, double, std::string, std::vector<std::int64_t>, std::vector<double>>` **`value`**

</div>

<div class="api-declared">

Declared in `ClikaRT/io/onnx_attr.h`, line 20

</div>
