File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -597,7 +597,7 @@ def main():
597
597
_logger .info ('Using native Torch AMP. Training in mixed precision.' )
598
598
else :
599
599
if utils .is_primary (args ):
600
- _logger .info (f'AMP not enabled. Training in { model_dtype } .' )
600
+ _logger .info (f'AMP not enabled. Training in { model_dtype or torch . float32 } .' )
601
601
602
602
# optionally resume from a checkpoint
603
603
resume_epoch = None
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ def validate(args):
192
192
amp_autocast = partial (torch .autocast , device_type = device .type , dtype = amp_dtype )
193
193
_logger .info ('Validating in mixed precision with native PyTorch AMP.' )
194
194
else :
195
- _logger .info (f'Validating in { model_dtype } . AMP not enabled.' )
195
+ _logger .info (f'Validating in { model_dtype or torch . float32 } . AMP not enabled.' )
196
196
197
197
if args .fuser :
198
198
set_jit_fuser (args .fuser )
You can’t perform that action at this time.
0 commit comments