---
title: "ClikaRT::graph::OnnxExportHandler"
sidebar_label: "OnnxExportHandler"
description: "A handler for one operator, in one export (OnnxExportOptions::handlers): it replaces the library's ONNX form for the nodes of code."
---

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

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

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

A handler for one operator, in one export ([`OnnxExportOptions::handlers`](./OnnxExportOptions.md#handlers)): it replaces the library's ONNX form for the nodes of [`code`](./OnnxExportHandler.md#code). The operators it writes are its own choice: the export writes them as they are, and [`io::OnnxModel::compile`](../io/OnnxModel.md#compile) refuses one this library does not read. Scope: the library's own operators; a handler for `OpCode::Custom`, the one code every user-defined operator shares, is refused.

## Data members

### code {#code}

<div class="api-signature">

[`OpCode`](./index.md#OpCode) **`code`** `=` [`OpCode::Unknown`](./index.md#OpCode)

</div>

the operator it writes; `Unknown` names none

<div class="api-declared">

Declared in `ClikaRT/graph/onnx_export.h`, line 84

</div>

### fn {#fn}

<div class="api-signature">

[`OnnxExportHandlerFn`](./index.md#OnnxExportHandlerFn) **`fn`**

</div>

the handler itself

<div class="api-declared">

Declared in `ClikaRT/graph/onnx_export.h`, line 85

</div>
