From a0617e70e33844b3a3115c793b2c23d78f46d08c Mon Sep 17 00:00:00 2001 From: keisuke umezawa Date: Mon, 19 Sep 2022 16:18:04 +0900 Subject: [PATCH] Update plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/_impl.py Co-authored-by: Jasha10 <8935917+Jasha10@users.noreply.github.com> --- .../hydra_plugins/hydra_optuna_sweeper/_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/_impl.py b/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/_impl.py index 2539a318848..57980b3ea69 100644 --- a/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/_impl.py +++ b/plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweeper/_impl.py @@ -113,7 +113,7 @@ def create_optuna_distribution_from_override(override: Override) -> Any: assert value.end is not None if "log" in value.tags: if isinstance(value.start, int) and isinstance(value.end, int): - return IntDistribution(int(value.start), int(value.end)) + return IntDistribution(int(value.start), int(value.end), log=True) return FloatDistribution(value.start, value.end, log=True) else: if isinstance(value.start, int) and isinstance(value.end, int):