mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
test memory printing
This commit is contained in:
@@ -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