Run tests if skip condition not met (#18764)

* Run tests if skip condition not met

* Update comment - remove outdated ref to TF 2.8
This commit is contained in:
amyeroberts
2022-08-30 13:03:28 +01:00
committed by GitHub
parent de8548ebf3
commit ef91a2d135
3 changed files with 7 additions and 7 deletions

View File

@@ -145,10 +145,10 @@ class TFConvNextModelTest(TFModelTesterMixin, unittest.TestCase):
@unittest.skipIf(
not is_tf_available() or len(tf.config.list_physical_devices("GPU")) == 0,
reason="TF (<=2.8) does not support backprop for grouped convolutions on CPU.",
reason="TF does not support backprop for grouped convolutions on CPU.",
)
def test_keras_fit(self):
pass
super().test_keras_fit()
@unittest.skip(reason="ConvNext does not support input and output embeddings")
def test_model_common_attributes(self):
@@ -176,7 +176,7 @@ class TFConvNextModelTest(TFModelTesterMixin, unittest.TestCase):
@unittest.skipIf(
not is_tf_available() or len(tf.config.list_physical_devices("GPU")) == 0,
reason="TF (<=2.8) does not support backprop for grouped convolutions on CPU.",
reason="TF does not support backprop for grouped convolutions on CPU.",
)
def test_dataset_conversion(self):
super().test_dataset_conversion()