mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
disable test that fails in fbcode (#88786)
Summary: caffe2/test:torch_cuda - test_advanced_indexing_assignment_lazy (test_view_ops.TestViewOpsLAZY) RuntimeError: TorchScript backend not yet supported in FBCODE/OVRSOURCE builds File "/usr/local/fbcode/platform010/lib/python3.8/unittest/suite.py", line 163, in _handleClassSetUp setUpClass() File "/re_cwd/fbcode/buck-out/opt/gen/caffe2/test/torch_cuda#binary,link-tree/torch/testing/_internal/common_device_type.py", line 506, in setUpClass torch._lazy.ts_backend.init() File "/re_cwd/fbcode/buck-out/opt/gen/caffe2/test/torch_cuda#binary,link-tree/torch/_lazy/ts_backend.py", line 6, in init torch._C._lazy_ts_backend._init() Test Plan: Rely on CI. Differential Revision: D41170545 Pull Request resolved: https://github.com/pytorch/pytorch/pull/88786 Approved by: https://github.com/zou3519
This commit is contained in:
committed by
PyTorch MergeBot
parent
1db0f735e8
commit
279dcce702
@ -9,7 +9,7 @@ import random
|
||||
|
||||
from torch.testing import make_tensor
|
||||
from torch.testing._internal.common_utils import (
|
||||
TestCase, run_tests, suppress_warnings, gradcheck, gradgradcheck,
|
||||
IS_FBCODE, TestCase, run_tests, suppress_warnings, gradcheck, gradgradcheck,
|
||||
numpy_to_torch_dtype_dict, skipIfTorchDynamo
|
||||
)
|
||||
from torch.testing._internal.common_device_type import \
|
||||
@ -857,6 +857,7 @@ class TestViewOps(TestCase):
|
||||
nv[1, 1] = 0
|
||||
self.assertNotEqual(t[2, 2], nv[1, 1])
|
||||
|
||||
@unittest.skipIf(IS_FBCODE, "TorchScript backend not yet supported in FBCODE/OVRSOURCE builds")
|
||||
def test_advanced_indexing_assignment(self, device):
|
||||
t = torch.ones(3, 3, device=device)
|
||||
rows = torch.tensor([[0, 0], [2, 2]], device=device)
|
||||
|
Reference in New Issue
Block a user