Re-land: Turn translation validation on for tests and accuracy runs by default. (#104467)

Re-landing: #103611

Pull Request resolved: https://github.com/pytorch/pytorch/pull/104467
Approved by: https://github.com/malfet
This commit is contained in:
Yukio Siraichi
2023-07-05 11:34:44 -03:00
committed by PyTorch MergeBot
parent 5ab2b27353
commit 40b8d10d5e
13 changed files with 188 additions and 3 deletions

View File

@ -1204,6 +1204,11 @@ def parse_args():
"doctest to run"
),
)
parser.add_argument(
"--no-translation-validation",
action="store_false",
help="Run tests without translation validation.",
)
group = parser.add_mutually_exclusive_group()
group.add_argument(
@ -1635,6 +1640,9 @@ def main():
elif options.inductor:
os.environ["PYTORCH_TEST_WITH_INDUCTOR"] = "1"
if not options.no_translation_validation:
os.environ["PYTORCH_TEST_WITH_TV"] = "1"
os.makedirs(REPO_ROOT / "test" / "test-reports", exist_ok=True)
failure_messages = []