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 026da00 commit 08a6594Copy full SHA for 08a6594
src/nf/nf_network_submodule.f90
@@ -373,10 +373,7 @@ pure module function get_num_params(self) result(num_params)
373
class(network), intent(in) :: self
374
integer :: n, num_params
375
376
- num_params = 0
377
- do n = 1, size(self % layers)
378
- num_params = num_params + self % layers(n) % get_num_params()
379
- end do
+ num_params = sum(self % layers % get_num_params())
380
381
end function get_num_params
382
0 commit comments