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/1.7.1] Fix torch.version.debug generation #48319

Merged
merged 1 commit into from Nov 20, 2020

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Nov 20, 2020

Summary:
argparser type bool returns True for any argument passed as input

Use distutils.util.strtobool which returns 0 for input values like "0", "no", "n", "f", "false" and 1 for "1", "yes", "y", "t", "true"

Fixes #46973 and #47003

This is a cherry-pick of #47006 into release/1.7

Summary:
argparser type bool returns True for any argument passed as input

Use `distutils.util.strtobool` which returns 0 for input values like "0", "no", "n", "f", "false" and 1 for "1", "yes", "y", "t", "true"

Fixes pytorch#46973 and pytorch#47003

Pull Request resolved: pytorch#47006

Reviewed By: samestep

Differential Revision: D24598193

Pulled By: malfet

fbshipit-source-id: e8f6688d6883011f301b49a0f03c452c611f7001
@seemethere seemethere merged commit 716adbe into pytorch:release/1.7 Nov 20, 2020
87 of 89 checks passed
@seemethere seemethere added this to the 1.7.1 milestone Nov 20, 2020
@malfet malfet deleted the malfet/cp-47006 branch Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants