A thin wrapper around layer % set_activation(). This method can be used to set an activation function for all layers at once.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(network_type), | intent(inout) | :: | self | |||
| character(len=*), | intent(in) | :: | activation |
pure subroutine set_activation_equal(self, activation)
!! A thin wrapper around layer % set_activation().
!! This method can be used to set an activation function
!! for all layers at once.
class(network_type), intent(in out) :: self
character(len=*), intent(in) :: activation
call self % layers(:) % set_activation(activation)
end subroutine set_activation_equal