Skip to content

Commit 2bd39c6

Browse files
stas00Bordaethanwharris
authored
make the error message readable (Lightning-AI#2729)
* make the error message readable make the error message readable by adding spaces, fixing a type "his -> this", * cleanup * Update pytorch_lightning/trainer/auto_mix_precision.py * Apply suggestions from code review Co-authored-by: Ethan Harris <ewah1g13@soton.ac.uk> Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: Ethan Harris <ewah1g13@soton.ac.uk>
1 parent 40337cc commit 2bd39c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytorch_lightning/trainer/auto_mix_precision.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ def init_amp(self):
2525
if self.use_amp and not APEX_AVAILABLE: # pragma: no-cover
2626
raise ModuleNotFoundError(
2727
"You set `use_amp=True` but do not have apex installed."
28-
"Install apex first using this guide and rerun with use_amp=True:"
29-
"https://github.com/NVIDIA/apex#linux his run will NOT use 16 bit precision"
28+
" Install apex first using this guide: https://github.com/NVIDIA/apex#linux"
29+
" and rerun with `use_amp=True`."
30+
" This run will NOT use 16 bit precision."
3031
)
3132

3233
if self.use_amp:

0 commit comments

Comments
 (0)