Skip to content

Commit a8b1753

Browse files
committed
Polish code
test=develop
1 parent a2820b9 commit a8b1753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/fluid/tests/unittests/dist_transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ def prepare_encoder(src_word,
11591159
name=pos_enc_param_name,
11601160
trainable=False,
11611161
initializer=fluid.initializer.ConstantInitializer(0.001)))
1162-
str_pos_enc.stop_gradient = True
1162+
src_pos_enc.stop_gradient = True
11631163
enc_input = src_word_emb + src_pos_enc
11641164
return layers.dropout(
11651165
enc_input,

0 commit comments

Comments
 (0)