ONE - On-device Neural Engine
|
#include "nnfw.h"
Go to the source code of this file.
Functions | |
NNFW_STATUS | nnfw_set_config (nnfw_session *session, const char *key, const char *value) |
NNFW_STATUS | nnfw_get_config (nnfw_session *session, const char *key, char *value, size_t value_size) |
NNFW_STATUS | nnfw_load_circle_from_buffer (nnfw_session *session, uint8_t *buffer, size_t size) |
Load a circle model from buffer. | |
NNFW_STATUS | nnfw_train_export_circleplus (nnfw_session *session, const char *file_path) |
Export circle+ model. | |
NNFW_STATUS nnfw_get_config | ( | nnfw_session * | session, |
const char * | key, | ||
char * | value, | ||
size_t | value_size | ||
) |
Definition at line 36 of file nnfw_internal.cc.
References NNFW_RETURN_ERROR_IF_NULL.
NNFW_STATUS nnfw_load_circle_from_buffer | ( | nnfw_session * | session, |
uint8_t * | buffer, | ||
size_t | size | ||
) |
Load a circle model from buffer.
The buffer must outlive the session.
[in] | session | session |
[in] | buffer | Pointer to the buffer |
[in] | size | Buffer size |
Definition at line 42 of file nnfw_internal.cc.
References NNFW_RETURN_ERROR_IF_NULL, and size.
NNFW_STATUS nnfw_set_config | ( | nnfw_session * | session, |
const char * | key, | ||
const char * | value | ||
) |
Definition at line 30 of file nnfw_internal.cc.
References NNFW_RETURN_ERROR_IF_NULL.
NNFW_STATUS nnfw_train_export_circleplus | ( | nnfw_session * | session, |
const char * | file_path | ||
) |
Export circle+ model.
nnfw_train
[in] | session | The session to export training model |
[in] | file_path | The path to export training model |
NNFW_STATUS_NO_ERROR
if successful Definition at line 48 of file nnfw_internal.cc.
References NNFW_RETURN_ERROR_IF_NULL.