mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
5ab2b27353
commit
40b8d10d5e
@ -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 = []
|
||||
|
Reference in New Issue
Block a user