added debugging util

This commit is contained in:
William Falcon 2019-07-24 10:33:03 -04:00
parent 1fd6158cea
commit 96ca1c1b39
2 changed files with 2 additions and 4 deletions

View File

@ -19,7 +19,7 @@ import tqdm
from pytorch_lightning.root_module.memory import get_gpu_memory_map
from pytorch_lightning.root_module.model_saving import TrainerIO
from pytorch_lightning.pt_overrides.override_data_parallel import LightningDistributedDataParallel, LightningDataParallel
from pytorch_lightning.utils.debugging import ForkedPdb
try:
from apex import amp
@ -254,8 +254,7 @@ class Trainer(TrainerIO):
@property
def __tng_tqdm_dic(self):
import pdb
pdb.set_trace()
ForkedPdb().set_trace()
tqdm_dic = {
'tng_loss': '{0:.3f}'.format(self.avg_loss),
'v_nb': '{}'.format(self.experiment.version),

View File

@ -242,6 +242,5 @@ def test_amp_gpu_ddp():
if __name__ == '__main__':
pytest.main([__file__])