updates
This commit is contained in:
parent
51d7e460a3
commit
64b606a3cd
1
train.py
1
train.py
|
@ -156,6 +156,7 @@ def train(cfg,
|
||||||
try:
|
try:
|
||||||
from apex import amp
|
from apex import amp
|
||||||
model, optimizer = amp.initialize(model, optimizer, opt_level='O1', verbosity=0)
|
model, optimizer = amp.initialize(model, optimizer, opt_level='O1', verbosity=0)
|
||||||
|
print('Using Apex')
|
||||||
except: # not installed: install help: https://github.com/NVIDIA/apex/issues/259
|
except: # not installed: install help: https://github.com/NVIDIA/apex/issues/259
|
||||||
mixed_precision = False
|
mixed_precision = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue