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 446cf2a commit 6809695Copy full SHA for 6809695
tests/test_enc_dec_att.py
@@ -14,7 +14,7 @@ def test_additive_attention():
14
15
enc_seq_len = torch.arange(start=10, end=20) # [10, ..., 19]
16
17
- # pass key as weight feedback for testing
+ # pass key as weight feedback just for testing
18
context, weights = att(key=key, value=value, query=query, weight_feedback=key, enc_seq_len=enc_seq_len)
19
assert context.shape == (10, 5)
20
assert weights.shape == (10, 20, 1)
0 commit comments