[packaging] add support for BytesIO#50838
Closed
suo wants to merge 2 commits intogh/suo/383/basefrom
Closed
Conversation
Similar to `torch.save` and `torch.jit.save`, accept a IO-like object instead of just a file. [ghstack-poisoned]
Similar to `torch.save` and `torch.jit.save`, accept a IO-like object instead of just a file. Differential Revision: [D25982719](https://our.internmc.facebook.com/intern/diff/D25982719) [ghstack-poisoned]
zdevito
approved these changes
Jan 21, 2021
Codecov Report
@@ Coverage Diff @@
## gh/suo/383/base #50838 +/- ##
===================================================
- Coverage 81.08% 80.75% -0.34%
===================================================
Files 1915 1915
Lines 208544 208554 +10
===================================================
- Hits 169108 168410 -698
- Misses 39436 40144 +708 |
Contributor
laurentdupin
pushed a commit
to laurentdupin/pytorch
that referenced
this pull request
Apr 24, 2026
Summary: Pull Request resolved: pytorch#50838 Similar to `torch.save` and `torch.jit.save`, accept a IO-like object instead of just a file. Test Plan: Imported from OSS Reviewed By: nikithamalgifb Differential Revision: D25982719 Pulled By: suo fbshipit-source-id: 42f3665932bbaa6897215002d116df6338edae50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
Similar to
torch.saveandtorch.jit.save, accept a IO-like objectinstead of just a file.
Differential Revision: D25982719