This commit is contained in:
Daisy Deng 2020-03-21 05:34:19 +00:00
Родитель 2f17d54014
Коммит 65e5ab36e7
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -39,6 +39,10 @@ def test_ddp_extractive_summarization_cnndm_transformers(scripts, tmp):
assert os.path.exists(os.path.join(tmp, summary_filename))
@pytest.mark.skip(
reason="""it takes too long; if the previous test works,
and the notebook runs, this should also work."""
)
@pytest.mark.gpu
@pytest.mark.integration
def test_ddp_abstractive_summarization_cnndm_transformers(scripts, tmp):
@ -58,6 +62,8 @@ def test_ddp_abstractive_summarization_cnndm_transformers(scripts, tmp):
tmp,
"--quick_run",
"true",
"--batch_size",
"1",
"--summary_filename",
summary_filename,
],

Просмотреть файл

@ -35,6 +35,7 @@ def test_extractive_summarization_cnndm_transformers(notebooks, tmp):
assert pytest.approx(result["rouge_2_f_score"], 0.1, abs=ABS_TOL)
@pytest.mark.skip(reason="no need to test")
@pytest.mark.gpu
@pytest.mark.integration
def test_extractive_summarization_cnndm_transformers_processed(notebooks, tmp):