C interface declarations for the wandb-fortran library.
Internal use only — applications should use module wf.
Interfaces
-
public function wandb_agent_c(sweep_id, project, entity, count) bind(C, name="wandb_agent_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
sweep_id(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
project(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
entity(*) |
|
|
integer(kind=c_int),
|
intent(in), |
|
value
|
:: |
count |
|
Return Value
integer(kind=c_int)
-
public function wandb_config_get_int_c(key, default_value) bind(C, name="wandb_config_get_int_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
key(*) |
|
|
integer(kind=c_int),
|
intent(in), |
|
value
|
:: |
default_value |
|
Return Value
integer(kind=c_int)
-
public function wandb_config_get_real_c(key, default_value) bind(C, name="wandb_config_get_real_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
key(*) |
|
|
real(kind=c_double),
|
intent(in), |
|
value
|
:: |
default_value |
|
Return Value
real(kind=c_double)
-
public function wandb_config_get_str_c(key, buf, buf_len) bind(C, name="wandb_config_get_str_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
key(*) |
|
|
character(kind=c_char, len=1),
|
intent(out) |
|
|
:: |
buf(*) |
|
|
integer(kind=c_int),
|
intent(in), |
|
value
|
:: |
buf_len |
|
Return Value
integer(kind=c_int)
-
public subroutine wandb_config_set_int_c(key, value) bind(C, name="wandb_config_set_int_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
key(*) |
|
|
integer(kind=c_int),
|
intent(in), |
|
value
|
:: |
value |
|
-
public subroutine wandb_config_set_real_c(key, value) bind(C, name="wandb_config_set_real_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
key(*) |
|
|
real(kind=c_double),
|
intent(in), |
|
value
|
:: |
value |
|
-
public subroutine wandb_config_set_str_c(key, value) bind(C, name="wandb_config_set_str_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
key(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
value(*) |
|
-
public subroutine wandb_finish_c() bind(C, name="wandb_finish_c")
Arguments
None
-
public function wandb_init_c(project, name, entity, sweep_id) bind(C, name="wandb_init_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
project(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
name(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
entity(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
sweep_id(*) |
|
Return Value
integer(kind=c_int)
-
public subroutine wandb_log_metric_c(key, value, step) bind(C, name="wandb_log_metric_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
key(*) |
|
|
real(kind=c_double),
|
intent(in), |
|
value
|
:: |
value |
|
|
integer(kind=c_int),
|
intent(in), |
|
value
|
:: |
step |
|
-
public subroutine wandb_shutdown_c() bind(C, name="wandb_shutdown_c")
Arguments
None
-
public function wandb_sweep_c(config_json, project, entity, sweep_id_buf, sweep_id_buf_len) bind(C, name="wandb_sweep_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
config_json(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
project(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
entity(*) |
|
|
character(kind=c_char, len=1),
|
intent(out) |
|
|
:: |
sweep_id_buf(*) |
|
|
integer(kind=c_int),
|
intent(in), |
|
value
|
:: |
sweep_id_buf_len |
|
Return Value
integer(kind=c_int)
-
public function wandb_sweep_params_c(buf, buf_len, timeout_s) bind(C, name="wandb_sweep_params_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(out) |
|
|
:: |
buf(*) |
|
|
integer(kind=c_int),
|
intent(in), |
|
value
|
:: |
buf_len |
|
|
real(kind=c_double),
|
intent(in), |
|
value
|
:: |
timeout_s |
|
Return Value
integer(kind=c_int)
-
public subroutine wandb_sweep_run_done_c() bind(C, name="wandb_sweep_run_done_c")
Arguments
None
-
public function wandb_sweep_start_agent_c(sweep_id, project, entity, count) bind(C, name="wandb_sweep_start_agent_c")
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
sweep_id(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
project(*) |
|
|
character(kind=c_char, len=1),
|
intent(in) |
|
|
:: |
entity(*) |
|
|
integer(kind=c_int),
|
intent(in), |
|
value
|
:: |
count |
|
Return Value
integer(kind=c_int)