Skip to content

Commit f6daab4

Browse files
committed
fix a bug
1 parent bcae872 commit f6daab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/layers/tensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def create_global_var(shape,
115115
"""
116116
helper = LayerHelper("global_var", **locals())
117117
var = helper.create_global_variable(
118-
dtype=dtype, shape=shape, persistable=persistable)
118+
dtype=dtype, shape=shape, persistable=persistable, name=name)
119119
helper.set_variable_initializer(
120120
var, initializer=Constant(
121121
value=float(value), force_cpu=force_cpu))

0 commit comments

Comments
 (0)