set_activation_layers Subroutine

private pure subroutine set_activation_layers(self, activation)

A thin wrapper around layer % set_activation(). This method can be used to set different activation functions for each layer separately.

Arguments

Type IntentOptional AttributesName
class(network_type), intent(inout) :: self
character(len=*), intent(in) :: activation(size(self%layers))

Contents

Source Code


Source Code

  pure subroutine set_activation_layers(self, activation)
    !! A thin wrapper around layer % set_activation().
    !! This method can be used to set different activation functions
    !! for each layer separately. 
    class(network_type), intent(in out) :: self
    character(len=*), intent(in) :: activation(size(self % layers))
    call self % layers(:) % set_activation(activation)
  end subroutine set_activation_layers