From 8258d9c1c2d5865697f763c2b2daa4c1d4389df9 Mon Sep 17 00:00:00 2001 From: William Falcon Date: Thu, 16 Jan 2020 16:43:44 -0500 Subject: [PATCH] finished lightning module --- pytorch_lightning/core/lightning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/core/lightning.py b/pytorch_lightning/core/lightning.py index 2ae7fd32..afc87021 100644 --- a/pytorch_lightning/core/lightning.py +++ b/pytorch_lightning/core/lightning.py @@ -1228,13 +1228,13 @@ def convert(val): constructors = [int, float, str] if type(val) is str: + if val.lower() == 'true': return True if val.lower() == 'false': return False for c in constructors: - try: return c(val) except ValueError: