wf_run Module

Run lifecycle: initialise a wandb run, log metrics, finish and shutdown. Log a scalar metric to the current wandb run.



Interfaces

public interface wandb_log

  • private subroutine wandb_log_real64(key, value, step)

    Arguments

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

    Arguments

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

    Arguments

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

Subroutines

public subroutine wandb_finish()

Finish the current wandb run (calls wandb.finish()) but keeps the Python interpreter alive. Safe to call between sweep runs. For the very last teardown call wandb_shutdown() as well.

Arguments

None

public subroutine wandb_init(project, name, entity, sweep_id)

Initialise a wandb run.

Read more…

Arguments

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

Project name (required).

character(len=*), intent(in), optional :: name

Run display name (optional).

character(len=*), intent(in), optional :: entity

wandb entity / team (optional).

character(len=*), intent(in), optional :: sweep_id

Sweep ID returned by wandb_sweep. When supplied,

public subroutine wandb_shutdown()

Shut down the Python interpreter and release all resources. Call once after all wandb runs (including sweep runs) are finished. No wandb calls should be made after this.

Arguments

None