From ac2911c399a019ab440d5cc73d081897090ad3f7 Mon Sep 17 00:00:00 2001 From: robot <2466956298@qq.com> Date: Wed, 25 Apr 2018 17:28:30 +0800 Subject: [PATCH] fix code style --- python/paddle/fluid/layers/tensor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/paddle/fluid/layers/tensor.py b/python/paddle/fluid/layers/tensor.py index 1cbef96a174..4be0dc6a6bf 100644 --- a/python/paddle/fluid/layers/tensor.py +++ b/python/paddle/fluid/layers/tensor.py @@ -193,9 +193,7 @@ def assign(input, output): helper = LayerHelper('assign', **locals()) if isinstance(input, Variable): helper.append_op( - type='assign', - inputs={'X': [input]}, - outputs={'Out': [output]}) + type='assign', inputs={'X': [input]}, outputs={'Out': [output]}) elif isinstance(input, numpy.ndarray): dtype = convert_np_dtype_to_dtype_(input.dtype) if dtype == VarDesc.VarType.FP32: -- GitLab