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 3f1062d commit 4ad12a0Copy full SHA for 4ad12a0
python/paddle/trainer_config_helpers/networks.py
@@ -1457,11 +1457,13 @@ def dot_product_attention(encoded_sequence,
1457
1458
expanded = expand_layer(
1459
input=transformed_state,
1460
- expanded_as=encoded_sequence,
+ expand_as=encoded_sequence,
1461
name='%s_expand' % name)
1462
1463
m = linear_comb_layer(
1464
- weights=expanded, vectors=encoded_sequence, name='%s_dot-product')
+ weights=expanded,
1465
+ vectors=encoded_sequence,
1466
+ name='%s_dot-product' % name)
1467
1468
attention_weight = fc_layer(
1469
input=m,
0 commit comments