factory_learning_rate_function Derived Type

type, public :: factory_learning_rate_function

Class that represents a factory of learning rate functions


Type-Bound Procedures

procedure, public :: create_learning_rate_fn

  • private subroutine create_learning_rate_fn(factory, type_, learning_rate_fn)

    Subroutine to create the instances of learning rate functions

    Arguments

    Type IntentOptional Attributes Name
    class(factory_learning_rate_function) :: factory

    A factory_learning_rate_function object

    character(len=*) :: type_

    A character string with the type of learning rate function to be instantiated

    class(learning_rate_function_base), allocatable :: learning_rate_fn

    A learning_rate_function_base object

Source Code

    type :: factory_learning_rate_function
    !! Class that represents a factory of learning rate functions
        contains
            procedure,public :: create_learning_rate_fn
    end type factory_learning_rate_function