Fix C API docs error (#15216)

This commit is contained in:
Nat Kershaw (MSFT) 2023-03-27 14:34:18 -07:00 committed by GitHub
parent 527e006124
commit 3064fa7611
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View file

@ -3970,7 +3970,6 @@ struct OrtApi {
*/
void(ORT_API_CALL* ReleaseDnnlProviderOptions)(_Frees_ptr_opt_ OrtDnnlProviderOptions* input);
/// @}
/// \name OrtKernelInfo
/// Custom operator APIs.
/// @{
@ -4022,7 +4021,7 @@ struct OrtApi {
* Used in the KernelCompute callback of an OrtCustomOp to get a logger that can be used to log
* messages during inference.
*
* \param[in] info An instance of ::OrtKernelContext.
* \param[in] context An instance of ::OrtKernelContext.
* \param[out] logger Pointer set to the kernel context's ::OrtLogger. Owned by ONNX Runtime, so do not free.
*
* \snippet{doc} snippets.dox OrtStatus Return Value
@ -4079,13 +4078,13 @@ struct OrtApi {
* \param[in] info ::OrtKernelInfo instance.
* \param[in] index The node index.
* \param[out] is_constant Is it a constant node input or not.
* \param[out] out The OrtValue tensor value.
* \param[out] out The OrtValue tensor value.
*
* \snippet{doc} snippets.dox OrtStatus Return Value
*
* \since Version 1.15.
*/
ORT_API2_STATUS(KernelInfoGetConstantInput_tensor, _In_ const OrtKernelInfo* info, size_t index, _Out_ int* is_constant, _Outptr_ const OrtValue** out);
ORT_API2_STATUS(KernelInfoGetConstantInput_tensor, _In_ const OrtKernelInfo* info, size_t index, _Out_ int* is_constant, _Outptr_ const OrtValue** out);
};
/*
@ -4197,5 +4196,4 @@ ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_Dnnl, _In_ OrtSessionOpt
#ifdef __cplusplus
}
#endif
//! @}
/// @}

View file

@ -1640,7 +1640,7 @@ struct Logger {
* \param func_name The name of the function in which the message is logged. Usually the value of __FUNCTION__.
* \param format A null-terminated UTF-8 format string forwarded to a printf-like function.
* Refer to https://en.cppreference.com/w/cpp/io/c/fprintf for information on valid formats.
* \param args... Zero or more variadic arguments referenced by the format string.
* \param args Zero or more variadic arguments referenced by the format string.
* \return A Ort::Status value to indicate error or success.
*/
template <typename... Args>