Skip to content

Commit

Permalink
dist train use split_by_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
typhoonzero committed Apr 17, 2018
1 parent 0c6eef3 commit ed89b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/distribute_transpiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ def _append_split_op(self, program, gradblocks):
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
Expand Down

0 comments on commit ed89b7b

Please sign in to comment.