From a8b17537e2e73d98c68ed1b17a574d091423c99e Mon Sep 17 00:00:00 2001 From: minqiyang Date: Sun, 28 Oct 2018 17:34:00 +0800 Subject: [PATCH] Polish code test=develop --- python/paddle/fluid/tests/unittests/dist_transformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/dist_transformer.py b/python/paddle/fluid/tests/unittests/dist_transformer.py index 23abd7953f9..27c67edf4f6 100644 --- a/python/paddle/fluid/tests/unittests/dist_transformer.py +++ b/python/paddle/fluid/tests/unittests/dist_transformer.py @@ -1159,7 +1159,7 @@ def prepare_encoder(src_word, name=pos_enc_param_name, trainable=False, initializer=fluid.initializer.ConstantInitializer(0.001))) - str_pos_enc.stop_gradient = True + src_pos_enc.stop_gradient = True enc_input = src_word_emb + src_pos_enc return layers.dropout( enc_input, -- GitLab