From f6daab438db0570b098963fb7f91dd01110918db Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Fri, 15 Jun 2018 17:59:04 +0800 Subject: [PATCH] fix a bug --- python/paddle/fluid/layers/tensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/tensor.py b/python/paddle/fluid/layers/tensor.py index 09c0b2fa7..973059a2c 100644 --- a/python/paddle/fluid/layers/tensor.py +++ b/python/paddle/fluid/layers/tensor.py @@ -115,7 +115,7 @@ def create_global_var(shape, """ helper = LayerHelper("global_var", **locals()) var = helper.create_global_variable( - dtype=dtype, shape=shape, persistable=persistable) + dtype=dtype, shape=shape, persistable=persistable, name=name) helper.set_variable_initializer( var, initializer=Constant( value=float(value), force_cpu=force_cpu)) -- GitLab