updates
This commit is contained in:
parent
52464f5a06
commit
09949cdafa
2
train.py
2
train.py
|
@ -101,7 +101,7 @@ def train(
|
||||||
mixed_precision = False
|
mixed_precision = False
|
||||||
if mixed_precision:
|
if mixed_precision:
|
||||||
from apex import amp
|
from apex import amp
|
||||||
model, optimizer = amp.initialize(model, optimizer, opt_level='01')
|
model, optimizer = amp.initialize(model, optimizer, opt_level='O1')
|
||||||
|
|
||||||
# Start training
|
# Start training
|
||||||
t = time.time()
|
t = time.time()
|
||||||
|
|
Loading…
Reference in New Issue