pytorch
058f43fc - Fix torch.version.debug generation (#47006)

Commit
4 years ago
Fix torch.version.debug generation (#47006) 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 https://github.com/pytorch/pytorch/issues/46973 and https://github.com/pytorch/pytorch/issues/47003 Pull Request resolved: https://github.com/pytorch/pytorch/pull/47006 Reviewed By: samestep Differential Revision: D24598193 Pulled By: malfet fbshipit-source-id: e8f6688d6883011f301b49a0f03c452c611f7001
Author
Parents
Loading