Avoid clang-tidy crashing due to readability-static-accessed-through-instance check bug (#10690)

See https://github.com/llvm/llvm-project/issues/53874 for more info.
This commit is contained in:
cloudhan 2022-03-01 11:06:00 +08:00 committed by GitHub
parent d2d22f2195
commit d1b2fb15ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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_);