Skip to content

Commit 421ae78

Browse files
committed
use tensorboard callback in guildai run
1 parent 2dc9814 commit 421ae78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/callbacks.R

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

801801
# add the tensorboard callback if necessary
802-
if (is_backend("tensorflow") && tfruns::is_run_active() && !have_tensorboard_callback)
802+
if ((getOption("guildai.is_run_active", FALSE) ||
803+
tfruns::is_run_active()) && !have_tensorboard_callback)
803804
callbacks <- append(callbacks, callback_tensorboard())
804805

805806
# return the callbacks

0 commit comments

Comments
 (0)