get_global_step | R Documentation |
Global step counters
get_global_step(increment = TRUE)
set_global_step(step)
increment |
Wether to increment the |
step |
New value for |
tfevents
tracks and automatically increased the step counter whenever
log_event()
is called. Note that, it maintains a separate step counter for
each root logdir
, thus if you change the logdir
using set_default_logdir()
or with_logdir()
, a different step counter will be used.
The global step value for the default logdir, when get_global_step
,
otherwise returns NULL
invisibly.
set_global_step()
: Set the global step.
temp <- tempfile()
with_logdir(temp, {
print(get_global_step())
set_global_step(100)
print(get_global_step())
})
print(get_global_step())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.