mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
Set precision=16 when use_amp is passed as True (#1145)
* Set precision=16 when use_amp is passed as True * Update CHANGELOG.md * add use_amp to deprecated API * Update trainer.py * Update trainer.py * move the use_amp attribute to deprecated API * move use_amp deprecation back to Trainer's __init__ * drop unsed * drop deprecated * reorder imports * typing Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: William Falcon <waf2107@columbia.edu> Co-authored-by: J. Borovec <jirka.borovec@seznam.cz>
This commit is contained in:
co-authored by
Jirka Borovec
William Falcon
J. Borovec
parent
26cb5f6817
commit
4ed3027309
@@ -32,7 +32,7 @@ def main(hparams):
|
||||
max_epochs=hparams.epochs,
|
||||
gpus=hparams.gpus,
|
||||
distributed_backend=hparams.distributed_backend,
|
||||
use_amp=hparams.use_16bit
|
||||
precision=16 if hparams.use_16bit else 32,
|
||||
)
|
||||
|
||||
# ------------------------
|
||||
|
||||
Reference in New Issue
Block a user