From 3ea046995e316a5d10ed5d53b0da522392a9f655 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Wed, 9 Mar 2022 14:21:23 +0100 Subject: [PATCH] Removed an outdated check about hdf5_version (#16011) * removed an outdated check about hdf5_version Co-authored-by: ydshieh --- tests/auto/test_modeling_tf_pytorch.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/auto/test_modeling_tf_pytorch.py b/tests/auto/test_modeling_tf_pytorch.py index 73dbf617d9..c60b8fc2f5 100644 --- a/tests/auto/test_modeling_tf_pytorch.py +++ b/tests/auto/test_modeling_tf_pytorch.py @@ -72,10 +72,6 @@ if is_torch_available(): class TFPTAutoModelTest(unittest.TestCase): @slow def test_model_from_pretrained(self): - import h5py - - self.assertTrue(h5py.version.hdf5_version.startswith("1.10")) - # for model_name in TF_BERT_PRETRAINED_MODEL_ARCHIVE_LIST[:1]: for model_name in ["bert-base-uncased"]: config = AutoConfig.from_pretrained(model_name) @@ -92,10 +88,6 @@ class TFPTAutoModelTest(unittest.TestCase): @slow def test_model_for_pretraining_from_pretrained(self): - import h5py - - self.assertTrue(h5py.version.hdf5_version.startswith("1.10")) - # for model_name in TF_BERT_PRETRAINED_MODEL_ARCHIVE_LIST[:1]: for model_name in ["bert-base-uncased"]: config = AutoConfig.from_pretrained(model_name)