added option to change default tensor

This commit is contained in:
William Falcon 2019-05-13 21:27:01 -04:00
parent 4dbf38093a
commit 8a68466710
1 changed files with 0 additions and 2 deletions

View File

@ -225,7 +225,6 @@ class Trainer(TrainerIO):
self.model, self.optimizers[0], opt_level="O2",
keep_batchnorm_fp32=True, loss_scale="dynamic"
)
pdb.set_trace()
self.optimizers[0] = optimizer
model.trainer = self
@ -369,7 +368,6 @@ class Trainer(TrainerIO):
self.__add_tqdm_metrics(model_specific_tqdm_metrics_dic)
# backward pass
pdb.set_trace()
if self.use_amp:
for optimizer in self.optimizers:
with amp.scale_loss(loss, optimizer) as scaled_loss: