-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[AUTO] Fix too much memory cost in auto #27871
[AUTO] Fix too much memory cost in auto #27871
Conversation
75e47d7
to
d8f0729
Compare
std::string compute_hash(const std::shared_ptr<const ov::Model>& model, | ||
const std::string& device_name, | ||
const ov::AnyMap& properties); | ||
std::string compute_hash(const std::string& model_path, | ||
const std::string& device_name, | ||
const ov::AnyMap& properties); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please describe scenarios how this new API is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests to cover new API calls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi, sorry for the confusion. This draft PR is a temporary patch proposed to solve the customer issue and will not be applied into OV.
@@ -101,6 +101,8 @@ void AutoSchedule::init() { | |||
auto load_device_task = [&](AutoCompileContext* context_ptr, const std::shared_ptr<ov::Model>& model) { | |||
try_to_compile_model(*context_ptr, model); | |||
if (context_ptr->m_is_load_success) { | |||
// release cloned model here | |||
const_cast<std::shared_ptr<ov::Model>&>(model).reset(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change argument type instead of const cast
This PR will be closed in a week because of 2 weeks of no activity. |
This PR was closed because it has been stalled for 2 week with no activity. |
Details:
Tickets: