Skip to content

File ns_model.h

FileList > includes-api > ns_model.h

Go to the source code of this file

Classes

Type Name
struct ns_model_state_t

Public Types

Type Name
enum ns_model_runtime_e
enum ns_model_states_e

Public Functions

Type Name
int ns_model_init (ns_model_state_t * ms)
Initialize the model.

Macros

Type Name
define NS_MAX_INPUT_TENSORS 3
define NS_MAX_OUTPUT_TENSORS 3

Public Types Documentation

enum ns_model_runtime_e

enum ns_model_runtime_e {
    TFLM
};

enum ns_model_states_e

enum ns_model_states_e {
    READY,
    NOT_READY,
    ERROR
};

Public Functions Documentation

function ns_model_init

Initialize the model.

int ns_model_init (
    ns_model_state_t * ms
) 

Parameters:

  • ms Model state and configuration struct

Returns:

int status

Initialize the model.

This code is fairly common across most TF-based models. The major differences relate to input and output tensor handling.

Macro Definition Documentation

define NS_MAX_INPUT_TENSORS

#define NS_MAX_INPUT_TENSORS 3

define NS_MAX_OUTPUT_TENSORS

#define NS_MAX_OUTPUT_TENSORS 3

The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-model/includes-api/ns_model.h