-
Notifications
You must be signed in to change notification settings - Fork 320
Closed
Description
The launched tensorbard instance after calling tensorflow::tensorboard("/tmp/tmplogs") doesn't find anything.
I think I tracked it down to the fact that the tensorboard process launched by the tensorboard() function is launched with a command line that looks like this.
~/.virtualenvs/tf2-rc/bin/pytho ~/.virtualenvs/tf2-rc/bin/tensorboard --logdir tmplogs:/tmp/tmplogs --host 127.0.0.1 --port 7838 --reload_interval 5 --purge_orphaned_data TRUE
It seems like the tmplogs:/tmplogs is making it fail. Tensorboard should simply be passed tensorboard --logdir /tmp/tmplogs (no colon)
Here is a full reprex:
library(tensorflow)
reticulate::use_virtualenv("tf2-rc", TRUE)
fn <- tf_function(function(x, y) {
message("Tracing")
tf$nn$relu(tf$matmul(x, y))
})
unlink(logdir)
logdir <- "/tmp/tmplogs"
writer <- tf$summary$create_file_writer(logdir)
x <- tf$random$uniform(shape(3, 3))
y <- tf$random$uniform(shape(3, 3))
tf$summary$trace_on()
fn(x, y)
with(writer$as_default(), {
tensorflow::tf$summary$trace_export(
name = "func",
step = 0L,
profiler_outdir = logdir
)
})
tensorflow::tensorboard(log_dir = logdir)=Metadata
Metadata
Assignees
Labels
No labels