Skip to content

Commit 97b635e

Browse files
committed
multihead_attention: set values from correct shape to tests
1 parent 2cc7775 commit 97b635e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_multihead_attention_layer.f90

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,10 @@ subroutine test_multihead_attention_backward(attention, ok)
191191
real :: input(3, 4, 1) = reshape([0.0, 10.1, 0.2, 10.3, 0.4, 10.5, 0.6, 10.7, 10.8, 0.9, 0.11, 0.12], [3, 4, 1])
192192
real :: gradient(3, 4, 1) = reshape([0.1, 3. , 2. , 0.1, 3. , 3. , 0.1, 2. , 0.1, 3. , 0.1, 3. ], [3, 4, 1])
193193
real :: expected_output_flat(12) = [&
194-
0.489710003, 0.240968466, -3.35404873E-02, 0.489710003,&
195-
0.240968466, -3.35404873E-02, 0.489710003, 0.240968466,&
196-
-3.35404873E-02, 0.489710003, 0.240968466, -3.35404873E-02&
194+
-2.29912549E-02, 0.381484956, 0.453185737,&
195+
-2.29912549E-02, 0.381484956, 0.453185737,&
196+
-2.29912549E-02, 0.381484956, 0.453185737,&
197+
-2.29912549E-02, 0.381484956, 0.453185737&
197198
]
198199
real :: expected_shape(3) = [3, 4, 1]
199200
real :: output(3, 4, 1)

0 commit comments

Comments
 (0)