From de188662db82ac79090f71d507c415d7dde94891 Mon Sep 17 00:00:00 2001 From: Guangyun Han Date: Fri, 25 Feb 2022 11:43:51 +0800 Subject: [PATCH] Avoid clang-tidy crashing due to readability-static-accessed-through-instance check bug See https://github.com/llvm/llvm-project/issues/53874 for more info. --- onnxruntime/core/session/inference_session.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/session/inference_session.cc b/onnxruntime/core/session/inference_session.cc index 990ee11f676c8..912443808147e 100644 --- a/onnxruntime/core/session/inference_session.cc +++ b/onnxruntime/core/session/inference_session.cc @@ -1914,7 +1914,7 @@ Status InferenceSession::Run(const RunOptions& run_options, telemetry_.total_run_duration_since_last_ += TimeDiffMicroSeconds(tp); // time to send telemetry? - if (TimeDiffMicroSeconds(telemetry_.time_sent_last_) > telemetry_.kDurationBetweenSending) { + if (TimeDiffMicroSeconds(telemetry_.time_sent_last_) > Telemetry::kDurationBetweenSending) { // send the telemetry env.GetTelemetryProvider().LogRuntimePerf(session_id_, telemetry_.total_runs_since_last_, telemetry_.total_run_duration_since_last_);