fix increment in case of 0
This commit is contained in:
parent
82cb107520
commit
a10f78e3ef
@ -157,7 +157,7 @@ class BaseEnvironment(gym.Env):
|
|||||||
:param value: `metric` value
|
:param value: `metric` value
|
||||||
:param category: `metric` category
|
:param category: `metric` category
|
||||||
"""
|
"""
|
||||||
increment = True if not value else False
|
increment = True if value is None else False
|
||||||
value = 1 if increment else value
|
value = 1 if increment else value
|
||||||
|
|
||||||
if category not in self.tensorboard_metrics:
|
if category not in self.tensorboard_metrics:
|
||||||
|
Loading…
Reference in New Issue
Block a user