Add warning of benchmark_app about disabling auto batching (#13907)
* merge master * reset original format * remove AUTO * Update tools/benchmark_tool/openvino/tools/benchmark/main.py Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com> * delete condition * delete condition in py Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com> Co-authored-by: Chen Peter <peter.chen@intel.com>
This commit is contained in:
@@ -600,6 +600,7 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
// If set batch size, disable the auto batching
|
||||
if (FLAGS_b > 0) {
|
||||
slog::warn << "Batch size is set. Auto batching will be disabled" << slog::endl;
|
||||
core.set_property(ov::hint::allow_auto_batching(false));
|
||||
}
|
||||
|
||||
|
||||
@@ -332,6 +332,7 @@ def main():
|
||||
|
||||
## If set batch size, disable the auto batching
|
||||
if args.batch_size:
|
||||
logger.warning("Batch size is set. Auto batching will be disabled")
|
||||
benchmark.set_allow_auto_batching(False)
|
||||
|
||||
topology_name = ""
|
||||
|
||||
Reference in New Issue
Block a user