Skip to content

Commit

Permalink
ref: part 4 of #3733
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Oct 2, 2020
1 parent 80c8966 commit 9e04ec0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def _setup_amp_backend(self, amp_type: str):

amp_type = amp_type.lower()
assert amp_type in ('native', 'apex'), f'Unsupported amp type {amp_type}'
import pdb; pdb.set_trace()
if amp_type == 'native':
if not NATIVE_AMP_AVALAIBLE:
rank_zero_warn('You have asked for native AMP but your PyTorch version does not support it.'
Expand All @@ -68,7 +69,6 @@ def _setup_amp_backend(self, amp_type: str):
self.backend = ApexPlugin(self.trainer)

if not self.trainer.amp_backend:
import pdb; pdb.set_trace()
raise ModuleNotFoundError(
f'You have asked for AMP support {amp_type}, but there is no support on your side yet.'
f' Consider installing torch >= 1.6 or NVIDIA Apex.'
Expand Down

0 comments on commit 9e04ec0

Please sign in to comment.