-
Notifications
You must be signed in to change notification settings - Fork 663
Support weight sharing in PTE #13941
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
Conversation
Support weight sharing in MTK Runtime
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13941
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit 6b30094 with merge base b02db12 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
@neuropilot-captain I think the PR needs to rebase |
There is still lint error...can you fix it? |
mPlannedBuffers.push_back(std::make_unique<uint8_t[]>(buffer_size)); | ||
mPlannedSpans.push_back({mPlannedBuffers.back().get(), buffer_size}); |
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.
nit: use emplace_back
ET_LOG(Debug, "Setting up planned buffer %zu, size %zu.", id, buffer_size); | ||
planned_buffers.push_back(std::make_unique<uint8_t[]>(buffer_size)); | ||
planned_spans.push_back({planned_buffers.back().get(), buffer_size}); | ||
auto modelInstance = new ModelInstance(modelPath); |
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.
use unique_ptr; this will leak if anything in here throws
Summary