Summary:
Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/67826

Reviewed By: Chillee

Differential Revision: D32164770

Pulled By: mruberry

fbshipit-source-id: c1de7e6db6d0cb1761388f1ea0178dbff3fe6dc8
This commit is contained in:
Mike Ruberry 2021-11-04 00:14:57 -07:00 committed by Facebook GitHub Bot
parent 1baed45c6b
commit b8d365ca3a

View File

@ -10,7 +10,7 @@ from torch.testing._internal.common_cuda import TEST_CUDA
from torch.testing._internal.common_utils import run_tests
from torch.testing import FileCheck
TEST_BFLOAT16 = torch.cuda.is_bf16_supported()
TEST_BFLOAT16 = TEST_CUDA and torch.cuda.is_bf16_supported()
class TestAutocast(JitTestCase):
def setUp(self):