fix increment in case of 0

This commit is contained in:
initrv 2023-03-12 23:29:27 +03:00
parent 82cb107520
commit a10f78e3ef

View File

@ -157,7 +157,7 @@ class BaseEnvironment(gym.Env):
:param value: `metric` value
: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
if category not in self.tensorboard_metrics: