Auto Batch: if disabled during cmake (#12382) (#12479)

This commit is contained in:
Evgenya Stepyreva
2022-08-10 13:51:26 +04:00
committed by GitHub
parent d328b00e48
commit c9afc5a5c1

View File

@@ -651,6 +651,12 @@ public:
// as the result is being checked by the user
strictly_check_dims = false;
} else {
// check if Auto-Batch plugin registered
try {
GetCPPPluginByName("BATCH");
} catch (const std::runtime_error&) {
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()) {