From 19a28b1611d72c2501deaee2a66b5e0836d6f1f1 Mon Sep 17 00:00:00 2001 From: robot <2466956298@qq.com> Date: Wed, 25 Apr 2018 17:03:58 +0800 Subject: [PATCH] [fix assign op]/2 using assign op instead of scale1.0 --- 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 5b8f55db72f..1cbef96a174 100644 --- a/python/paddle/fluid/layers/tensor.py +++ b/python/paddle/fluid/layers/tensor.py @@ -195,7 +195,7 @@ def assign(input, output): helper.append_op( type='assign', inputs={'X': [input]}, - outputs={'Out': [output]}, + outputs={'Out': [output]}) elif isinstance(input, numpy.ndarray): dtype = convert_np_dtype_to_dtype_(input.dtype) if dtype == VarDesc.VarType.FP32: -- GitLab