Skip to content

Commit 19a28b1

Browse files
TomorrowIsAnOtherDayreyoung
authored andcommitted
[fix assign op]/2 using assign op instead of scale1.0
1 parent 8806801 commit 19a28b1

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
@@ -195,7 +195,7 @@ def assign(input, output):
195195
helper.append_op(
196196
type='assign',
197197
inputs={'X': [input]},
198-
outputs={'Out': [output]},
198+
outputs={'Out': [output]})
199199
elif isinstance(input, numpy.ndarray):
200200
dtype = convert_np_dtype_to_dtype_(input.dtype)
201201
if dtype == VarDesc.VarType.FP32:

0 commit comments

Comments
 (0)