From 4459fa67268bdd15834b964b93f8f8d7e9098993 Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Sun, 8 Apr 2018 16:16:00 +0800 Subject: [PATCH] fix seq tag model dist transpile --- python/paddle/fluid/framework.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index 185f4f6651f..fbe4531f056 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -965,6 +965,13 @@ class Block(object): 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, -- GitLab