Skip to content

Commit 1a72331

Browse files
committed
Modified test_network_save to test association with same procedure for activation functions
1 parent 50a7feb commit 1a72331

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/tests/test_network_save.f90

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ program test_network_save
1414
do n = 1, size(net1 % layers)
1515
print *, 'Layer ', n, ', weights equal: ',&
1616
all(net1 % layers(n) % w == net2 % layers(n) % w),&
17-
', biases equal:', all(net1 % layers(n) % b == net2 % layers(n) % b),&
18-
', activation functions equal:', net1 % layers(n) % activation_str == net2 % layers(n) % activation_str
17+
', biases equal:', all(net1 % layers(n) % b == net2 % layers(n) % b)
1918
end do
2019
print *, ''
2120

@@ -27,7 +26,7 @@ program test_network_save
2726
print *, 'Load network 2 from file'
2827
do n = 1, size(net1 % layers)
2928
print *, 'Layer ', n, ', activation functions equal:',&
30-
net1 % layers(n) % activation_str == net2 % layers(n) % activation_str,&
31-
'(network 1 - ', net1 % layers(n) % activation_str, ', network 2 - ', net2 % layers(n) % activation_str,')'
29+
associated(net1 % layers(n) % activation, net2 % layers(n) % activation),&
30+
'(network 1: ', net1 % layers(n) % activation_str, ', network 2: ', net2 % layers(n) % activation_str,')'
3231
end do
3332
end program test_network_save

0 commit comments

Comments
 (0)