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.
1 parent 19a28b1 commit ac2911cCopy full SHA for ac2911c
python/paddle/fluid/layers/tensor.py
@@ -193,9 +193,7 @@ def assign(input, output):
193
helper = LayerHelper('assign', **locals())
194
if isinstance(input, Variable):
195
helper.append_op(
196
- type='assign',
197
- inputs={'X': [input]},
198
- outputs={'Out': [output]})
+ type='assign', inputs={'X': [input]}, outputs={'Out': [output]})
199
elif isinstance(input, numpy.ndarray):
200
dtype = convert_np_dtype_to_dtype_(input.dtype)
201
if dtype == VarDesc.VarType.FP32:
0 commit comments