From a67b7ef5bb413981ff44416a2dc15f51d82fae85 Mon Sep 17 00:00:00 2001 From: Iman Tabrizian Date: Wed, 8 Mar 2023 16:07:34 -0500 Subject: [PATCH] Fix typos --- include/triton/core/tritonbackend.h | 12 ++++++------ include/triton/core/tritonserver.h | 14 ++------------ 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/include/triton/core/tritonbackend.h b/include/triton/core/tritonbackend.h index 4f34b1c56..bf4a87002 100644 --- a/include/triton/core/tritonbackend.h +++ b/include/triton/core/tritonbackend.h @@ -530,7 +530,7 @@ TRITONBACKEND_RequestOutputBufferProperties( TRITONBACKEND_DECLSPEC TRITONSERVER_Error* TRITONBACKEND_RequestRelease( TRITONBACKEND_Request* request, uint32_t release_flags); -/// Get the trace associted with a request. The returned trace is owned by the +/// Get the trace associated with a request. The returned trace is owned by the /// request, not the caller, and so should not be modified or freed. /// /// \param request The inference request. @@ -588,7 +588,7 @@ TRITONBACKEND_ResponseFactorySendFlags( /// response using TRITONBACKEND_ResponseOutput and /// TRITONBACKEND_OutputBuffer *before* another response is created /// for the request. For a given response, outputs can be created in -/// any order but they must be created sequentially/sychronously (for +/// any order but they must be created sequentially/synchronously (for /// example, the backend cannot use multiple threads to simultaneously /// add multiple outputs to a response). /// @@ -720,7 +720,7 @@ TRITONBACKEND_DECLSPEC TRITONSERVER_Error* TRITONBACKEND_StateNew( const int64_t* shape, const uint32_t dims_count); /// Update the state for the sequence. Calling this function will replace the -/// state stored for this seqeunce in Triton with 'state' provided in the +/// state stored for this sequence in Triton with 'state' provided in the /// function argument. If this function is called when sequence batching is not /// enabled or there is no 'states' section in the sequence batching section of /// the model configuration, this call will return an error. The backend is not @@ -869,7 +869,7 @@ TRITONBACKEND_BackendSetExecutionPolicy( /// communicated to Triton as indicated by 'artifact_type'. /// /// TRITONBACKEND_ARTIFACT_FILESYSTEM: The backend artifacts are -/// made available to Triton via the local filesytem. 'location' +/// made available to Triton via the local filesystem. 'location' /// returns the full path to the directory containing this /// backend's artifacts. The returned string is owned by Triton, /// not the caller, and so should not be modified or freed. @@ -937,7 +937,7 @@ TRITONBACKEND_DECLSPEC TRITONSERVER_Error* TRITONBACKEND_ModelVersion( /// communicated to Triton as indicated by 'artifact_type'. /// /// TRITONBACKEND_ARTIFACT_FILESYSTEM: The model artifacts are made -/// available to Triton via the local filesytem. 'location' +/// available to Triton via the local filesystem. 'location' /// returns the full path to the directory in the model repository /// that contains this model's artifacts. The returned string is /// owned by Triton, not the caller, and so should not be modified @@ -1430,7 +1430,7 @@ TRITONBACKEND_BackendAttributeAddPreferredInstanceGroup( /// /// \param batcher User-defined placeholder for backend to store and /// retrieve information about the batching strategy for this -/// model.RITONBACKEND_ISPEC return a TRITONSERVER_Error indicating success or +/// model. TRITONBACKEND_ISPEC returns a TRITONSERVER_Error indicating success or /// failure. \param model The backend model for which Triton is forming a batch. /// \return a TRITONSERVER_Error indicating success or failure. TRITONBACKEND_ISPEC TRITONSERVER_Error* TRITONBACKEND_ModelBatcherInitialize( diff --git a/include/triton/core/tritonserver.h b/include/triton/core/tritonserver.h index 5c3083a7b..ac8e8c2e7 100644 --- a/include/triton/core/tritonserver.h +++ b/include/triton/core/tritonserver.h @@ -862,8 +862,7 @@ TRITONSERVER_DECLSPEC TRITONSERVER_Error* TRITONSERVER_InferenceTraceModelName( /// \param trace The trace. /// \param name The name associated with the trace. /// \return a TRITONSERVER_Error indicating success or failure. -TRITONSERVER_DECLSPEC TRITONSERVER_Error* -TRITONSERVER_InferenceTraceSetModelName( +TRITONSERVER_DECLSPEC TRITONSERVER_Error* TRITONSERVER_InferenceTraceSetName( TRITONSERVER_InferenceTrace* trace, const char* name); /// Get the name associated with a trace. The caller does @@ -874,16 +873,7 @@ TRITONSERVER_InferenceTraceSetModelName( /// \param name Returns the name associated with the trace. /// \return a TRITONSERVER_Error indicating success or failure. TRITONSERVER_DECLSPEC TRITONSERVER_Error* TRITONSERVER_InferenceTraceName( - TRITONSERVER_InferenceTrace* trace, const char** name); - -/// Set the name associated with a trace. -/// -/// \param trace The trace. -/// \param trace_name The anme associated with a trace. -/// \return a TRITONSERVER_Error indicating success or failure. -TRITONSERVER_DECLSPEC TRITONSERVER_Error* -TRITONSERVER_InferenceTraceSetName( - TRITONSERVER_InferenceTrace* trace, const char* trace_name); + TRITONSERVER_InferenceTrace* trace, const char** trace_name); /// Get the version of the model associated with a trace. ///