test memory printing

This commit is contained in:
William Falcon
2019-07-24 17:35:39 -04:00
parent 5ebe494212
commit ffdf11b7ed
+3 -3
View File
@@ -36,9 +36,6 @@ def test_cpu_model():
model, hparams = get_model()
# test memory gathering
model.count_mem_items()
run_gpu_model_test(trainer_options, model, hparams, on_gpu=False)
@@ -237,6 +234,9 @@ def test_ddp_sampler_error():
use_amp=True
)
# test memory gathering
trainer.count_mem_items()
with pytest.raises(MisconfigurationException):
trainer.get_dataloaders(model)