Revert "[codemod] markDynamoStrictTest batch 16 (#117218)"

This reverts commit 47119785acbfe20d9ef6cf5d90887a441402f5c7.

Reverted https://github.com/pytorch/pytorch/pull/117218 on behalf of https://github.com/zou3519 due to just felt like reverting this ([comment](https://github.com/pytorch/pytorch/pull/117218#issuecomment-1888360366))
This commit is contained in:
PyTorch MergeBot
2024-01-12 03:06:20 +00:00
parent ac0bed01df
commit b3b585af64
3 changed files with 14 additions and 76 deletions

View File

@ -49,7 +49,7 @@ from torch.testing._internal.common_device_type import (
)
from torch.testing._internal.common_methods_invocations import op_db
from torch.testing._internal.common_nn import module_tests, new_module_tests
from torch.testing._internal.common_utils import TEST_Z3, run_tests, TestCase, skipIfTorchDynamo
from torch.testing._internal.common_utils import TEST_Z3, run_tests, TestCase
from torch.testing._internal.jit_utils import JitTestCase
try:
@ -1486,7 +1486,6 @@ class {test_classname}(torch.nn.Module):
for sig_type, arg_type in should_fail:
self.assertFalse(type_matches(sig_type, arg_type))
@skipIfTorchDynamo("'_CachedForward' object has no attribute '__code__'")
@skipIfNoMkldnn
def test_optimize_for_inference_cpu(self):
import torch.nn as nn