Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyShuai committed Jul 12, 2023
1 parent 813b0d2 commit 6c67e44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 2 additions & 5 deletions include/onnxruntime/core/session/onnxruntime_c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -698,12 +698,9 @@ typedef OrtStatus*(ORT_API_CALL* RegisterCustomOpsFn)(OrtSessionOptions* options

/** \brief Callback function for RunAsync
*
* \param[in] user_data A customized handle passed in by RunAsync.
* \param[in] user_data User specific data that passed back to the callback.
* \param[out] outputs On succeed, outputs host inference results.
NOTE:
1. Ort is in charge of the lifetime of "outputs" array, but NOT each of its element, which is a OrtValue*.
2. Customer is expected to release each element of "outputs", which is a OrtValue*.
* \param[out] num_outputs Number of output.
* \param[out] num_outputs Number of outputs.
* \param[out] status On error, status will provide details.
*/
typedef void (*RunAsyncCallbackFn)(void* user_data, OrtValue** outputs, size_t num_outputs, OrtStatusPtr status);
Expand Down
1 change: 0 additions & 1 deletion include/onnxruntime/core/session/onnxruntime_cxx_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <unordered_map>
#include <utility>
#include <type_traits>
#include <functional>

#ifdef ORT_NO_EXCEPTIONS
#include <iostream>
Expand Down

0 comments on commit 6c67e44

Please sign in to comment.