Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onert] Remove modelfile loading internal API #14480

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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