Skip to content

Commit cb717f5

Browse files
committed
multihead_attention: add the most important lines to tests
1 parent 70272cb commit cb717f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_multihead_attention_layer.f90

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ program test_multihead_attention_layer
3030
call test_self_attention(ok)
3131
call test_cross_attention(ok)
3232

33+
if (ok) then
34+
print '(a)', 'test_multihead_attention_layer: All tests passed.'
35+
else
36+
write(stderr, '(a)') 'test_multihead_attention_layer: One or more tests failed.'
37+
stop 1
38+
end if
39+
3340
contains
3441
function allclose(x, y) result(res)
3542
real, intent(in) :: x(:)

0 commit comments

Comments
 (0)