Skip to content

Commit

Permalink
[onert] Update nnfw_load_model_from_file comment and parameter (#14478)
Browse files Browse the repository at this point in the history
This commit updates the comment of nnfw_load_model_from_file and parameter name.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Dec 19, 2024
1 parent 23b449a commit 3099167
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
10 changes: 5 additions & 5 deletions runtime/onert/api/nnfw/include/nnfw.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,16 @@ NNFW_STATUS nnfw_create_session(nnfw_session **session);
NNFW_STATUS nnfw_close_session(nnfw_session *session);

/**
* @brief Load model from model file or nnpackage directory
* @brief Load model from path to model or nnpackage
*
* The length of \p file_path must not exceed 1024 bytes including zero at the end.
* The length of \p path must not exceed 1024 bytes including zero at the end.
*
* @param[in] session nnfw_session loading the given file/dir
* @param[in] file_path Path to the model file or nnpackage directory to be loaded
* @param[in] session nnfw_session loading the given file/dir
* @param[in] path Path to the model file or nnpackage directory to be loaded
*
* @return @c NNFW_STATUS_NO_ERROR if successful
*/
NNFW_STATUS nnfw_load_model_from_file(nnfw_session *session, const char *file_path);
NNFW_STATUS nnfw_load_model_from_file(nnfw_session *session, const char *path);

/**
* @brief Apply i-th input's tensor info to resize input tensor
Expand Down
12 changes: 2 additions & 10 deletions runtime/onert/api/nnfw/src/nnfw_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,10 @@ NNFW_STATUS nnfw_close_session(nnfw_session *session)
return NNFW_STATUS_NO_ERROR;
}

/*
* Load model from nnpackage file or directory
*
* @param session nnfw_session loading the given file/dir
* @param file_path path to the model file or nnpackage directory to be loaded
*
* @return NNFW_STATUS_NO_ERROR if successful
*/
NNFW_STATUS nnfw_load_model_from_file(nnfw_session *session, const char *file_path)
NNFW_STATUS nnfw_load_model_from_file(nnfw_session *session, const char *path)
{
NNFW_RETURN_ERROR_IF_NULL(session);
return session->load_model_from_path(file_path);
return session->load_model_from_path(path);
}

/*
Expand Down

0 comments on commit 3099167

Please sign in to comment.