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

[Release 0.4.1] Cherry-pick multiple PRs related tutorial doc #719

Merged
merged 3 commits into from
Aug 5, 2022

Conversation

ejguan
Copy link
Contributor

@ejguan ejguan commented Aug 5, 2022

Cherry-picked: #675 #688 #715

Diamond Bishop and others added 3 commits August 5, 2022 17:53
Summary:
Fixes pytorch#674

### Changes

updated tutorial in documentation to specify the newline explitly
`writer = csv.DictWriter(open(f"sample_data{file_label}.csv", "w", newline=''), fieldnames=fieldnames)`

instead of:
`writer = csv.DictWriter(open(f"sample_data{file_label}.csv", "w"), fieldnames=fieldnames)`

## Testing
- tested by running the generate_csv function before and after on a windows machine, before was creating newlines between lines and throwing errors, after the created files don't have newlines and full tutorial works

Pull Request resolved: pytorch#675

Reviewed By: ejguan

Differential Revision: D38116301

Pulled By: NivekT

fbshipit-source-id: 1885c40cdc739ca70c5236e983389d88f662b2d4
Summary:
Pull Request resolved: pytorch#688

Fixes pytorch#668

Let me know if the added note is unclear and we can improve upon it.

Test Plan: Imported from OSS

Reviewed By: ejguan

Differential Revision: D38129786

Pulled By: NivekT

fbshipit-source-id: 90ebd43ec448394146bb9136db58d07f0ae74aa4
Summary:
Fixes pytorch#709

Per title

Pull Request resolved: pytorch#715

Reviewed By: NivekT

Differential Revision: D38432061

Pulled By: ejguan

fbshipit-source-id: a8853a86efa9ca7ed6a9e76f0d51470d34513f48
@ejguan ejguan requested a review from NivekT August 5, 2022 17:55
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 5, 2022
Copy link
Contributor

@NivekT NivekT left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@ejguan ejguan merged commit 9375899 into pytorch:release/0.4 Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants