Skip to content

Commit

Permalink
Auto Batch: if disabled during cmake (#12382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenya Stepyreva committed Aug 2, 2022
1 parent e1865fd commit c62251c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/inference/src/ie_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,12 @@ class CoreImpl : public ie::ICore, public std::enable_shared_from_this<ie::ICore
// as the result is being checked by the user
strictly_check_dims = false;
} else {
// check if Auto-Batch plugin registered
try {
GetCPPPluginByName("BATCH");
} catch (...) {
return;
}
// check whether the Auto-Batching is disabled explicitly
const auto& batch_mode = config.find(ov::hint::allow_auto_batching.name());
if (batch_mode != config.end()) {
Expand Down

0 comments on commit c62251c

Please sign in to comment.