set_activation_equal Subroutine

private 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.

Arguments

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

Contents

Source Code


Source Code

  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