Skip to content

Commit

Permalink
fixed native amp + ddp
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed May 12, 2020
1 parent be47494 commit f520076
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,7 @@ def __init__(
self.autocast_original_forward = None
self.use_native_amp = hasattr(torch.cuda, "amp") and hasattr(torch.cuda.amp, "autocast")
self.precision = precision
if self.use_native_amp and self.precision == 16:
self.scaler = None
self.scaler = None

# TODO: remove for v0.8.0
self.amp_level = amp_level
Expand Down

0 comments on commit f520076

Please sign in to comment.