From 4c7a0f4550f7ab23bde6cf87eb425cb608972a82 Mon Sep 17 00:00:00 2001 From: Yingge He Date: Tue, 12 Nov 2024 18:09:08 -0800 Subject: [PATCH] Add guard --- src/model_config_utils.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model_config_utils.cc b/src/model_config_utils.cc index c5ab257e9..a182fe397 100644 --- a/src/model_config_utils.cc +++ b/src/model_config_utils.cc @@ -446,6 +446,8 @@ ValidateNonLinearFormatIO( return Status::Success; } +#ifdef TRITON_ENABLE_METRICS + // Helper function to validate that model_metrics contains all required data. Status ValidateModelMetrics(const inference::ModelMetrics& model_metrics) @@ -479,6 +481,8 @@ ValidateModelMetrics(const inference::ModelMetrics& model_metrics) return Status::Success; } +#endif // TRITON_ENABLE_METRICS + } // namespace Status