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():
597597 _logger .info ('Using native Torch AMP. Training in mixed precision.' )
598598 else :
599599 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 } .' )
601601
602602 # optionally resume from a checkpoint
603603 resume_epoch = None
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ def validate(args):
192192 amp_autocast = partial (torch .autocast , device_type = device .type , dtype = amp_dtype )
193193 _logger .info ('Validating in mixed precision with native PyTorch AMP.' )
194194 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.' )
196196
197197 if args .fuser :
198198 set_jit_fuser (args .fuser )
You can’t perform that action at this time.
0 commit comments