Skip to content

Commit

Permalink
Merge pull request #9741 from typhoonzero/fix_seq_tag_model_dist_tran…
Browse files Browse the repository at this point in the history
…spile

Fix seq tag model dist transpile
  • Loading branch information
typhoonzero authored Apr 8, 2018
2 parents 3874c38 + 4459fa6 commit 7d39725
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/paddle/fluid/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,13 @@ def clone_variable(self, var):
if var.type == core.VarDesc.VarType.STEP_SCOPES:
ret_var = self.create_var(
name=var.name, persistable=var.persistable, type=var.type)
elif var.type == core.VarDesc.VarType.SELECTED_ROWS:
ret_var = self.create_var(
name=var.name,
shape=var.shape,
dtype=var.dtype,
type=var.type,
persistable=True)
else:
ret_var = self.create_var(
name=var.name,
Expand Down

0 comments on commit 7d39725

Please sign in to comment.