Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_nn_axon.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
14#ifndef _NRF_NN_AXON_H_
15#define _NRF_NN_AXON_H_
16
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
26
35
44
57
67 const flt32_t* p_input_features,
68 size32_t input_features_num,
69 int8_t* p_scaled_features);
70
81 const int8_t* p_input_features,
82 int8_t* p_output_buffer);
83
93 const int8_t* p_output_buffer,
94 uint16_t outputs_num,
95 flt32_t* p_dequantized_outputs);
96#ifdef __cplusplus
97}
98#endif
99
100#endif /* _NRF_NN_AXON_H_ */
101
int8_t nrf_nn_axon_run_inference(const nrf_nn_axon_model_t *p_nn, const int8_t *p_input_features, int8_t *p_output_buffer)
Run inference on an Axon NN model.
int8_t nrf_nn_axon_deinit(const nrf_nn_axon_model_t *p_nn)
Deinitialize the Axon NN inference engine and release any resources.
int8_t nrf_nn_axon_init_persistent_vars(const nrf_nn_axon_model_t *p_nn)
Initialize all the persistent var buffers in a streaming-style model (with VarHandle/ReadVariable/Ass...
int8_t nrf_nn_axon_init(const nrf_nn_axon_model_t *p_nn)
Initialize the Axon NN inference engine.
void nrf_nn_axon_dequantize_outputs(const nrf_nn_axon_model_t *p_nn, const int8_t *p_output_buffer, uint16_t outputs_num, flt32_t *p_dequantized_outputs)
Dequantize the outputs from an Axon NN model.
void nrf_nn_axon_scale_inputs(const nrf_nn_axon_model_t *p_nn, const flt32_t *p_input_features, size32_t input_features_num, int8_t *p_scaled_features)
Scale floating point input features to quantized int8 input tensor format.
size_t size32_t
Architecture 32-bit size_t type definition.
Definition nrf_edgeai_ctypes.h:31
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21
Definition nrf_axon_nn_infer.h:103