wf_config Module

Hyperparameter configuration: set and retrieve wandb config values. Set a wandb config hyperparameter. Read back a config value injected by the sweep agent after wandb_init.



Interfaces

public interface wandb_config_get

  • private subroutine wandb_config_get_integer(key, value, default_value)

    Read an integer hyperparameter from the current wandb config.

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: key

    Config key.

    integer, intent(out) :: value

    Receives the value (or default_value if absent).

    integer, intent(in), optional :: default_value

    Fallback when the key is not present.

  • private subroutine wandb_config_get_real64(key, value, default_value)

    Read a double-precision hyperparameter from the current wandb config.

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: key
    real(kind=c_double), intent(out) :: value
    real(kind=c_double), intent(in), optional :: default_value
  • private subroutine wandb_config_get_real32(key, value, default_value)

    Read a single-precision hyperparameter from the current wandb config.

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: key
    real(kind=c_float), intent(out) :: value
    real(kind=c_float), intent(in), optional :: default_value
  • private subroutine wandb_config_get_string(key, value, default_value)

    Read a string hyperparameter from the current wandb config. The output string value is space-padded to its declared length.

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: key
    character(len=*), intent(inout) :: value
    character(len=*), intent(in), optional :: default_value

public interface wandb_config_set

  • private subroutine wandb_config_set_integer(key, value)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: key
    integer, intent(in) :: value
  • private subroutine wandb_config_set_real64(key, value)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: key
    real(kind=c_double), intent(in) :: value
  • private subroutine wandb_config_set_real32(key, value)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: key
    real(kind=c_float), intent(in) :: value
  • private subroutine wandb_config_set_string(key, value)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: key
    character(len=*), intent(in) :: value