未验证 提交 1a8864f3 编写于 作者: W wangchaochaohu 提交者: GitHub

refine build strategy for the model optimize test=develop (#3435)

* refine build strategy for the model optimize test=develop

* fix according develop test=develop
上级 86b17393
......@@ -158,6 +158,7 @@ def main():
# compile program for multi-devices
build_strategy = fluid.BuildStrategy()
build_strategy.fuse_all_optimizer_ops = False
build_strategy.fuse_elewise_add_act_ops = True
# only enable sync_bn in multi GPU devices
sync_bn = getattr(model.backbone, 'norm_type', None) == 'sync_bn'
build_strategy.sync_batch_norm = sync_bn and devices_num > 1 \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册