mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-30 13:40:46 +08:00
test memory printing
This commit is contained in:
1 parent
5ebe494212
commit
ffdf11b7ed
1 file changed
+3
-3
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user