Anthony Barbier
2025-10-02 22:22:04 +00:00
committed by PyTorch MergeBot
parent ece5e0f01b
commit bdc0a421d7
13 changed files with 226 additions and 104 deletions

View File

@ -5,12 +5,17 @@ from torch.cuda.amp import autocast
from typing import Optional
import unittest
from test_jit import JitTestCase
from torch.testing._internal.common_cuda import TEST_CUDA
from torch.testing._internal.common_utils import run_tests, skipIfTorchDynamo
from torch.testing._internal.common_utils import parse_cmd_line_args, run_tests, skipIfTorchDynamo
from torch.testing import FileCheck
from jit.test_models import MnistNet
if __name__ == '__main__':
# The value of GRAPH_EXECUTOR depends on command line arguments so make sure they're parsed
# before instantiating tests.
parse_cmd_line_args()
from test_jit import JitTestCase
TEST_BFLOAT16 = TEST_CUDA and torch.cuda.is_bf16_supported()
@skipIfTorchDynamo("Not a TorchDynamo suitable test")