mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[Dynamo] skip some TorchScript tests (#128731)
We don't care about the Dynamo x TorchScript composition, so I'm disabling these tests (so they don't get reported as flaky). Not disabling all of the TorchScript tests yet because they have been useful to catch random bugs. Test Plan: - CI Pull Request resolved: https://github.com/pytorch/pytorch/pull/128731 Approved by: https://github.com/williamwen42
This commit is contained in:
parent
4b96575a09
commit
11de50f17c
|
|
@ -4967,6 +4967,7 @@ a")
|
|||
test(backward=True)
|
||||
test(backward=True)
|
||||
|
||||
@skipIfTorchDynamo("Not a TorchDynamo suitable test")
|
||||
def test_index(self):
|
||||
def consec(size, start=0):
|
||||
numel = torch.tensor(size).prod().item()
|
||||
|
|
@ -6431,6 +6432,7 @@ a")
|
|||
cu = torch.jit.CompilationUnit(dedent(inspect.getsource(func_float_int)))
|
||||
cu.func_float_int(5.3, 0)
|
||||
|
||||
@skipIfTorchDynamo("Not a TorchDynamo suitable test")
|
||||
def test_math_ops(self):
|
||||
def checkMathWrap(func_name, num_args=1, is_float=True, **args):
|
||||
if is_float:
|
||||
|
|
@ -6959,6 +6961,7 @@ a")
|
|||
self.assertFalse(test_all_float_list([3.14, 0, 8.9]))
|
||||
|
||||
|
||||
@skipIfTorchDynamo("Not a TorchDynamo suitable test")
|
||||
def test_number_math(self):
|
||||
ops_template = dedent('''
|
||||
def func():
|
||||
|
|
@ -7207,6 +7210,7 @@ a")
|
|||
|
||||
test(op, tensor, const, swap_args)
|
||||
|
||||
@skipIfTorchDynamo("Not a TorchDynamo suitable test")
|
||||
def test_tensor_number_math(self):
|
||||
self._test_tensor_number_math()
|
||||
|
||||
|
|
@ -7643,6 +7647,7 @@ dedent """
|
|||
with self.assertRaises(Exception):
|
||||
foo(2)
|
||||
|
||||
@skipIfTorchDynamo("Not a TorchDynamo suitable test")
|
||||
def test_isinstance(self):
|
||||
# test isinstance operator for static type checking
|
||||
template = dedent('''
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user