Skip to content

Commit c677363

Browse files
committed
check for guild run using RUN_DIR
1 parent 3f375d3 commit c677363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/callbacks.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,8 @@ normalize_callbacks <- function(callbacks) {
799799
})
800800

801801
# add the tensorboard callback if necessary
802-
if ((getOption("guildai.is_run_active", FALSE) ||
803-
tfruns::is_run_active()) && !have_tensorboard_callback)
802+
if ((nzchar(Sys.getenv("RUN_DIR")) || tfruns::is_run_active()) &&
803+
!have_tensorboard_callback)
804804
callbacks <- append(callbacks, callback_tensorboard())
805805

806806
# return the callbacks

0 commit comments

Comments
 (0)