[parallel_inference] added support for parallel inference with timed duration perf test (#10922)

This commit is contained in:
soundarthiaga 2022-03-18 19:05:28 -07:00 committed by GitHub
parent 5cbacec854
commit de06d95096
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,9 @@ Status PerformanceRunner::RunParallelDuration() {
count++;
counter++;
tpool->Schedule([this, &counter, &m, &cv]() {
session_->ThreadSafeRun();
auto status = RunOneIteration<false>();
if (!status.IsOK())
std::cerr << status.ErrorMessage();
// Simplified version of Eigen::Barrier
std::lock_guard<OrtMutex> lg(m);
counter--;