-
Notifications
You must be signed in to change notification settings - Fork 25.6k
inplace PyTorchStreamReader getRecord() #100418
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
Summary: Sometimes we want to getRecord into an pre-allocated memory to save cpu memory. Adding new API to support the inplace memory writing. Test Plan: /data/users/jiayisuse/fbsource/buck-out/v2/gen/fbcode/caffe2/caffe2/serialize/inline_container_test Reviewed By: zyan0 Differential Revision: D45439517 fbshipit-source-id: 51ef8c29dce67482f4ecac70013a256e36947021
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/100418
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 1d52536: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D45439517 |
/easycla |
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.
Looks good.
@pytorchbot merge -f 'Landed internally'nn(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge -f 'Landed internally'nn(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge -f 'Landed internally'nn(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge -f 'Landed internally'nn(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge -f 'Landed internally'nn(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge -f 'Landed internally'nn(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge -f 'Landed internally'nn(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
❌ 🤖 pytorchbot command failed:
Try |
/easycla |
@pytorchbot merge -f 'Landed internally' |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Summary: Sometimes we want to getRecord into an pre-allocated memory to save cpu memory. Adding new API to support the inplace memory writing.
Test Plan: caffe2/serialize/inline_container_test
Reviewed By: zyan0
Differential Revision: D45439517