Skip to content

Commit

Permalink
Add TF prefix to TF-Res test class (#18481)
Browse files Browse the repository at this point in the history
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
  • Loading branch information
ydshieh and ydshieh authored Aug 5, 2022
1 parent bf174f9 commit 893122f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/models/resnet/test_modeling_tf_resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from transformers import AutoFeatureExtractor


class ResNetModelTester:
class TFResNetModelTester:
def __init__(
self,
parent,
Expand Down Expand Up @@ -116,7 +116,7 @@ def prepare_config_and_inputs_for_common(self):


@require_tf
class ResNetModelTest(TFModelTesterMixin, unittest.TestCase):
class TFResNetModelTest(TFModelTesterMixin, unittest.TestCase):
"""
Here we also overwrite some of the tests of test_modeling_common.py, as ResNet does not use input_ids, inputs_embeds,
attention_mask and seq_length.
Expand All @@ -131,7 +131,7 @@ class ResNetModelTest(TFModelTesterMixin, unittest.TestCase):
has_attentions = False

def setUp(self):
self.model_tester = ResNetModelTester(self)
self.model_tester = TFResNetModelTester(self)
self.config_tester = ConfigTester(self, config_class=ResNetConfig, has_text_modality=False)

def test_config(self):
Expand Down Expand Up @@ -223,7 +223,7 @@ def prepare_img():

@require_tf
@require_vision
class ResNetModelIntegrationTest(unittest.TestCase):
class TFResNetModelIntegrationTest(unittest.TestCase):
@cached_property
def default_feature_extractor(self):
return (
Expand Down

0 comments on commit 893122f

Please sign in to comment.