Structure Types

enum riscv_nn_activation_type

Values:

enumerator RISCV_SIGMOID
enumerator RISCV_TANH
enum riscv_nmsis_nn_status

Values:

enumerator RISCV_NMSIS_NN_SUCCESS
enumerator RISCV_NMSIS_NN_ARG_ERROR
enumerator RISCV_NMSIS_NN_NO_IMPL_ERROR
enumerator RISCV_NMSIS_NN_FAILURE
struct nmsis_nn_tile
struct nmsis_nn_context
struct nmsis_nn_bias_data
struct nmsis_nn_dims
struct nmsis_nn_lstm_dims
struct nmsis_nn_per_channel_quant_params
struct nmsis_nn_per_tensor_quant_params
struct nmsis_nn_quant_params
struct nmsis_nn_activation
struct nmsis_nn_conv_params
struct nmsis_nn_transpose_conv_params
struct nmsis_nn_dw_conv_params
struct nmsis_nn_pool_params
struct nmsis_nn_fc_params
struct nmsis_nn_bmm_params
struct nmsis_nn_transpose_params
struct nmsis_nn_svdf_params
struct nmsis_nn_softmax_lut_s16
struct nmsis_nn_scaling
struct nmsis_nn_lstm_gate
struct nmsis_nn_lstm_params
struct nmsis_nn_lstm_context
group Structure Types

Enums and Data Structures used in public API.

Enums

enum riscv_nn_activation_type

Enum for specifying activation function types

Values:

enumerator RISCV_SIGMOID

Sigmoid activation function

enumerator RISCV_TANH

Tanh activation function

enum riscv_nmsis_nn_status

Function return codes

Values:

enumerator RISCV_NMSIS_NN_SUCCESS

No error

enumerator RISCV_NMSIS_NN_ARG_ERROR

One or more arguments are incorrect

enumerator RISCV_NMSIS_NN_NO_IMPL_ERROR

No implementation available

enumerator RISCV_NMSIS_NN_FAILURE

Logical error

struct nmsis_nn_tile
#include <riscv_nn_types.h>

NMSIS-NN object to contain the width and height of a tile

struct nmsis_nn_context
#include <riscv_nn_types.h>

NMSIS-NN object used for the function context.

struct nmsis_nn_bias_data
#include <riscv_nn_types.h>

NMSIS-NN object used to hold bias data for int16 variants.

struct nmsis_nn_dims
#include <riscv_nn_types.h>

NMSIS-NN object to contain the dimensions of the tensors

struct nmsis_nn_lstm_dims
#include <riscv_nn_types.h>

NMSIS-NN object to contain LSTM specific input parameters related to dimensions

struct nmsis_nn_per_channel_quant_params
#include <riscv_nn_types.h>

NMSIS-NN object for the per-channel quantization parameters

struct nmsis_nn_per_tensor_quant_params
#include <riscv_nn_types.h>

NMSIS-NN object for the per-tensor quantization parameters

struct nmsis_nn_quant_params
#include <riscv_nn_types.h>

NMSIS-NN object for quantization parameters. This struct supports both per-tensor and per-channels requantization and is recommended for new operators.

struct nmsis_nn_activation
#include <riscv_nn_types.h>

NMSIS-NN object for the quantized Relu activation

struct nmsis_nn_conv_params
#include <riscv_nn_types.h>

NMSIS-NN object for the convolution layer parameters

struct nmsis_nn_transpose_conv_params
#include <riscv_nn_types.h>

NMSIS-NN object for the transpose convolution layer parameters

struct nmsis_nn_dw_conv_params
#include <riscv_nn_types.h>

NMSIS-NN object for the depthwise convolution layer parameters

struct nmsis_nn_pool_params
#include <riscv_nn_types.h>

NMSIS-NN object for pooling layer parameters

struct nmsis_nn_fc_params
#include <riscv_nn_types.h>

NMSIS-NN object for Fully Connected layer parameters

struct nmsis_nn_bmm_params
#include <riscv_nn_types.h>

NMSIS-NN object for Batch Matmul layer parameters

struct nmsis_nn_transpose_params
#include <riscv_nn_types.h>

NMSIS-NN object for Transpose layer parameters

struct nmsis_nn_svdf_params
#include <riscv_nn_types.h>

NMSIS-NN object for SVDF layer parameters

struct nmsis_nn_softmax_lut_s16
#include <riscv_nn_types.h>

NMSIS-NN object for Softmax s16 layer parameters

struct nmsis_nn_scaling
#include <riscv_nn_types.h>

NMSIS-NN object for quantization parameters

struct nmsis_nn_lstm_gate
#include <riscv_nn_types.h>

NMSIS-NN object for LSTM gate parameters

struct nmsis_nn_lstm_params
#include <riscv_nn_types.h>

NMSIS-NN object for LSTM parameters

struct nmsis_nn_lstm_context
#include <riscv_nn_types.h>

NMSIS-NN object for LSTM scratch buffers