Skip to main content

ClikaRT::io::OnnxAttr

struct

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​

std::string name

attribute name

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

value​

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

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