Crate stonnx_api

Source

Modules§

common
executor
onnxparser
operators
protograph
utils

Macros§

create_intermediate_output_dir_for
Creates a directory for intermediate outputs, only if the verbosity level is set to Intermediate or above.
named_array_to_file
Logs an ndarray to a file in the npy format, only if the verbosity level is set to Intermediate or above.
print_at_level
This macro prints a message if the verbosity level is high enough

Structs§

Model

Enums§

ExecutionMode
Execution mode
GraphFormat
Graph format
Verbosity

Functions§

free_onnx_model
Frees a model
get_opset_version
Returns the opset version of a model
last_error
Returns a pointer to a C string containing the last error
read_onnx_model
Reads an ONNX model from a file
run_model
Runs a model given a path to a model directory, verbosity level (0-4), graph format (json / dot), and execution mode (failfast / continue)