Skip to content

Commit

Permalink
[onert] Remove modelfile loading internal API
Browse files Browse the repository at this point in the history
This commit removes model file loading internal API.
Official API includes this functionality.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
  • Loading branch information
hseok-oh committed Dec 19, 2024
1 parent 2643791 commit 1645fbd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
9 changes: 0 additions & 9 deletions runtime/onert/api/nnfw/include/nnfw_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ NNFW_STATUS nnfw_get_config(nnfw_session *session, const char *key, char *value,
*/
NNFW_STATUS nnfw_load_circle_from_buffer(nnfw_session *session, uint8_t *buffer, size_t size);

/**
* @brief Load a tflite/circle model from file.
*
* @param[in] session session
* @param[in] file_path Path to model file. Model type(tflite/circle) is decided by file extension
* @return NFNFW_STATUS
*/
NNFW_STATUS nnfw_load_model_from_modelfile(nnfw_session *session, const char *file_path);

/**
* @brief Export circle+ model
* @note This function should be called on training mode
Expand Down
6 changes: 0 additions & 6 deletions runtime/onert/api/nnfw/src/nnfw_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ NNFW_STATUS nnfw_load_circle_from_buffer(nnfw_session *session, uint8_t *buffer,
return session->load_circle_from_buffer(buffer, size);
}

NNFW_STATUS nnfw_load_model_from_modelfile(nnfw_session *session, const char *file_path)
{
NNFW_RETURN_ERROR_IF_NULL(session);
return session->load_model_from_path(file_path);
}

NNFW_STATUS nnfw_train_export_circleplus(nnfw_session *session, const char *path)
{
NNFW_RETURN_ERROR_IF_NULL(session);
Expand Down

0 comments on commit 1645fbd

Please sign in to comment.