@@ -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
3332end program test_network_save
0 commit comments