未验证 提交 df8c6d28 编写于 作者: W wuzewu 提交者: GitHub

Update solver.py

上级 d7b5fd26
...@@ -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 OptimizerWithMixedPrecison, 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.
先完成此消息的编辑!
想要评论请 注册