提交 fd338b25 编写于 作者: C chenguowei01

update solver.py

上级 7c7b1d79
...@@ -18,7 +18,10 @@ import paddle.fluid as fluid ...@@ -18,7 +18,10 @@ import paddle.fluid as fluid
import numpy as np import numpy as np
import importlib import importlib
from utils.config import cfg from utils.config import cfg
from paddle.fluid.contrib.mixed_precision.decorator import OptimizerWithMixedPrecision, decorate, AutoMixedPrecisionLists try:
from paddle.fluid.contrib.mixed_precision.decorator import OptimizerWithMixedPrecison, decorate, AutoMixedPrecisionLists
except:
from paddle.fluid.contrib.mixed_precision.decorator import OptimizerWithMixedPrecision, decorate, AutoMixedPrecisionLists
class Solver(object): class Solver(object):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册