Commit d5f7d2d9 by Ting PAN

Disable tensorboard for non-root nodes

1 parent f8359d17
Showing with 3 additions and 1 deletions
......@@ -52,7 +52,7 @@ class SolverWrapper(object):
# Plan the metrics
self.metrics = collections.OrderedDict()
if cfg.ENABLE_TENSOR_BOARD:
if cfg.ENABLE_TENSOR_BOARD and logger.is_root():
from dragon.tools.tensorboard import TensorBoard
self.board = TensorBoard(log_dir=coordinator.experiment_dir + '/logs')
......
......@@ -70,6 +70,8 @@ if __name__ == '__main__':
'Excepted staring of {} processes, got {}.'
.format(cfg.NUM_GPUS, world_size)
)
# Setup the logging modules
logger.set_root_logger(world_rank == 0)
# Select the GPU depending on the rank of process
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!