From 1f18b744ea8e623c4e3b47eb2df6dfe1b025586c Mon Sep 17 00:00:00 2001 From: Ryan Julian Date: Fri, 30 Mar 2018 20:59:21 -0700 Subject: [PATCH] Fix TensorBoard logging --- rllab/misc/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rllab/misc/logger.py b/rllab/misc/logger.py index ccfb0dff7..5a039c643 100644 --- a/rllab/misc/logger.py +++ b/rllab/misc/logger.py @@ -84,7 +84,7 @@ def remove_tabular_output(file_name): def set_tensorboard_dir(dir_name): global _tensorboard_writer - if dir_name: + if not dir_name: if _tensorboard_writer: _tensorboard_writer.close() _tensorboard_writer = None