Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tensorboard/uploader/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ py_library(
"//tensorboard:expect_absl_logging_installed",
"//tensorboard:expect_grpc_installed",
"//tensorboard:program",
"//tensorboard/compat:tensorflow",
"//tensorboard/plugins:base_plugin",
"//tensorboard/uploader/proto:protos_all_py_pb2_grpc",
],
Expand Down
3 changes: 2 additions & 1 deletion tensorboard/uploader/uploader_subcommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

from absl import logging
import grpc
from tensorboard.compat import tf
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a BUILD dep for "//tensorboard/compat:tensorflow"


from tensorboard.uploader.proto import experiment_pb2
from tensorboard.uploader.proto import export_service_pb2_grpc
Expand Down Expand Up @@ -414,7 +415,7 @@ def execute(self, server_info, channel):
verbosity=self.verbosity,
one_shot=self.one_shot,
)
if self.one_shot and not os.path.isdir(self.logdir):
if self.one_shot and not tf.io.gfile.isdir(self.logdir):
print("%s: No such directory." % self.logdir)
print(
"User specified `one_shot` mode with an unavailable "
Expand Down