From ddc906860c96fd0235073b294fc691116dbe2a4e Mon Sep 17 00:00:00 2001 From: Zeng Jinle <32832641+sneaxiy@users.noreply.github.com> Date: Tue, 10 Sep 2019 14:12:22 +0800 Subject: [PATCH] set enable_inplace to True in models, test=develop (#3297) --- tools/train.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/train.py b/tools/train.py index eb827e033..352ab67f0 100644 --- a/tools/train.py +++ b/tools/train.py @@ -134,7 +134,6 @@ def main(): # compile program for multi-devices build_strategy = fluid.BuildStrategy() - build_strategy.enable_inplace = False sync_bn = getattr(model.backbone, 'norm_type', None) == 'sync_bn' # only enable sync_bn in multi GPU devices build_strategy.sync_batch_norm = sync_bn and devices_num > 1 and cfg.use_gpu -- GitLab