From 0f6e5a613063027c6ecae986149ce70becdf44c9 Mon Sep 17 00:00:00 2001 From: Stephen Roller Date: Thu, 10 Sep 2020 13:17:03 -0400 Subject: [PATCH] Fix typo in tensorboard. (#3067) * Fix typo in tensorboard. * Bump version too (0.9.2) --- parlai/__init__.py | 2 +- parlai/core/logs.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parlai/__init__.py b/parlai/__init__.py index 9b0ce1f19ed..28fc11983c4 100644 --- a/parlai/__init__.py +++ b/parlai/__init__.py @@ -4,4 +4,4 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -__version__ = '0.9.1' +__version__ = '0.9.2' diff --git a/parlai/core/logs.py b/parlai/core/logs.py index fed5062739d..d6c0273a2ad 100644 --- a/parlai/core/logs.py +++ b/parlai/core/logs.py @@ -53,7 +53,7 @@ def __init__(self, opt: Opt): tbpath = opt['model_file'] + '.tensorboard' logging.debug(f'Saving tensorboard logs to: {tbpath}') if not PathManager.exists(tbpath): - PathManager.makedirs(tbpath) + PathManager.mkdirs(tbpath) self.writer = SummaryWriter(tbpath, comment=json.dumps(opt)) def log_metrics(self, setting, step, report): diff --git a/setup.py b/setup.py index da60bd0c020..13fb384d39d 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ from setuptools import setup, find_packages -VERSION = '0.9.1' # if you update, update parlai/__init__.py too! +VERSION = '0.9.2' # if you update, update parlai/__init__.py too! if sys.version_info < (3, 6): sys.exit('Sorry, Python >=3.6 is required for ParlAI.')