Get the number of parameters in batch normalisation layer
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(batch_layer_type), | intent(in) | :: | this |
Instance of the layer |
Number of parameters
pure module function get_num_params_batch(this) result(num_params) !! Get the number of parameters in batch normalisation layer implicit none ! Arguments class(batch_layer_type), intent(in) :: this !! Instance of the layer integer :: num_params !! Number of parameters ! num_filters x num_channels x kernel_size + num_biases ! num_biases = num_filters num_params = 2 * this%num_channels end function get_num_params_batch