From ed89b7b7e6f7651a852be5cafdc1264f46bed65a Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Tue, 17 Apr 2018 17:23:02 +0800 Subject: [PATCH] dist train use split_by_ref --- python/paddle/fluid/distribute_transpiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/distribute_transpiler.py b/python/paddle/fluid/distribute_transpiler.py index aa15392d7e4..0c21f859a7a 100644 --- a/python/paddle/fluid/distribute_transpiler.py +++ b/python/paddle/fluid/distribute_transpiler.py @@ -824,7 +824,7 @@ class DistributeTranspiler: for v in splited_vars: sections.append(v.shape[0]) program.global_block().append_op( - type="split", + type="split_byref", inputs={"X": orig_var}, outputs={"Out": splited_vars}, attrs={"sections": sections} # assume split evenly -- GitLab