Skip to content

Commit

Permalink
Avoid clang-tidy crashing due to readability-static-accessed-through-…
Browse files Browse the repository at this point in the history
…instance check bug

See llvm/llvm-project#53874 for more info.
  • Loading branch information
cloudhan committed Feb 25, 2022
1 parent 2679711 commit de18866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxruntime/core/session/inference_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down

0 comments on commit de18866

Please sign in to comment.