Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Batch Plugin] fix the issue about optimal batch size in batch plugin #28045

Conversation

zhaixuejun1993
Copy link
Contributor

Tickets:

@@ -258,7 +258,7 @@ std::shared_ptr<ov::ICompiledModel> Plugin::compile_model(const std::shared_ptr<
const int estimated_batch = static_cast<int>((total_mem - batch1_footprint) / batch1_footprint);
int closest = static_cast<int>(pow(2, floor(std::log(estimated_batch) / std::log(2))));
closest = std::max(1, closest);
meta_device.device_batch_size = std::min(static_cast<int>(meta_device.device_batch_size), closest);
meta_device.device_batch_size = std::min(256, std::max(static_cast<int>(meta_device.device_batch_size), closest));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need fix the incorrect meta_device.device_batch_size issue?

@peterchen-intel
Copy link
Contributor

"fix the incorrect meta_device.device_batch_size" in #28059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: AUTO BATCH OpenVINO Auto Batch plugin do_not_merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants