From 6c67e44890e70ace95f829829ce0adae0ef4d408 Mon Sep 17 00:00:00 2001 From: Randy Shuai Date: Wed, 12 Jul 2023 15:35:14 -0700 Subject: [PATCH] fix comments --- include/onnxruntime/core/session/onnxruntime_c_api.h | 7 ++----- include/onnxruntime/core/session/onnxruntime_cxx_api.h | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/include/onnxruntime/core/session/onnxruntime_c_api.h b/include/onnxruntime/core/session/onnxruntime_c_api.h index 45bf731c9fb88..852f7f4fd2dc2 100644 --- a/include/onnxruntime/core/session/onnxruntime_c_api.h +++ b/include/onnxruntime/core/session/onnxruntime_c_api.h @@ -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); diff --git a/include/onnxruntime/core/session/onnxruntime_cxx_api.h b/include/onnxruntime/core/session/onnxruntime_cxx_api.h index fb37eca4d0625..c1b4b2a7075f3 100644 --- a/include/onnxruntime/core/session/onnxruntime_cxx_api.h +++ b/include/onnxruntime/core/session/onnxruntime_cxx_api.h @@ -34,7 +34,6 @@ #include #include #include -#include #ifdef ORT_NO_EXCEPTIONS #include