Skip to content

Commit 4459fa6

Browse files
committed
fix seq tag model dist transpile
1 parent 3874c38 commit 4459fa6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/paddle/fluid/framework.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,13 @@ def clone_variable(self, var):
965965
if var.type == core.VarDesc.VarType.STEP_SCOPES:
966966
ret_var = self.create_var(
967967
name=var.name, persistable=var.persistable, type=var.type)
968+
elif var.type == core.VarDesc.VarType.SELECTED_ROWS:
969+
ret_var = self.create_var(
970+
name=var.name,
971+
shape=var.shape,
972+
dtype=var.dtype,
973+
type=var.type,
974+
persistable=True)
968975
else:
969976
ret_var = self.create_var(
970977
name=var.name,

0 commit comments

Comments
 (0)