Fix typo in model name.

This looks like a copy/paste mistake. Probably this test was never run.

Refs #2250.
This commit is contained in:
Aymeric Augustin 2019-12-21 08:46:26 +01:00
parent 343c094f21
commit 767bc3ca68

View File

@ -252,7 +252,7 @@ class TFXLMModelTest(TFCommonTestCases.TFCommonModelTester):
@slow
def test_model_from_pretrained(self):
for model_name in list(TF_XLM_PRETRAINED_MODEL_ARCHIVE_MAP.keys())[:1]:
model = XLMModel.from_pretrained(model_name, cache_dir=CACHE_DIR)
model = TFXLMModel.from_pretrained(model_name, cache_dir=CACHE_DIR)
self.assertIsNotNone(model)