We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7029240 commit f588cf4Copy full SHA for f588cf4
tests/test_modeling_flax_bert.py
@@ -141,7 +141,8 @@ def setUp(self):
141
142
@slow
143
def test_model_from_pretrained(self):
144
- for model_class_name in self.all_model_classes:
145
- model = model_class_name.from_pretrained("bert-base-cased", from_pt=True)
146
- outputs = model(np.ones((1, 1)))
147
- self.assertIsNotNone(outputs)
+ # Only check this for base model, not necessary for all model classes.
+ # This will also help speed-up tests.
+ model = FlaxBertModel.from_pretrained("bert-base-cased")
+ outputs = model(np.ones((1, 1)))
148
+ self.assertIsNotNone(outputs)
0 commit comments