We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25779c9 + ac2911c commit 494554fCopy full SHA for 494554f
python/paddle/fluid/layers/tensor.py
@@ -193,10 +193,7 @@ def assign(input, output):
193
helper = LayerHelper('assign', **locals())
194
if isinstance(input, Variable):
195
helper.append_op(
196
- type='scale',
197
- inputs={'X': [input]},
198
- outputs={'Out': [output]},
199
- attrs={'scale': 1.0})
+ type='assign', inputs={'X': [input]}, outputs={'Out': [output]})
200
elif isinstance(input, numpy.ndarray):
201
dtype = convert_np_dtype_to_dtype_(input.dtype)
202
if dtype == VarDesc.VarType.FP32:
0 commit comments