From 47a3fce2e1dba4e8f174a642563be53c788386ed Mon Sep 17 00:00:00 2001 From: boris-il-forte Date: Tue, 30 Jan 2024 12:16:16 +0100 Subject: [PATCH] Fixed minor bug in sac post load --- mushroom_rl/algorithms/actor_critic/deep_actor_critic/sac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mushroom_rl/algorithms/actor_critic/deep_actor_critic/sac.py b/mushroom_rl/algorithms/actor_critic/deep_actor_critic/sac.py index 1c28aba3..43dbe7cb 100644 --- a/mushroom_rl/algorithms/actor_critic/deep_actor_critic/sac.py +++ b/mushroom_rl/algorithms/actor_critic/deep_actor_critic/sac.py @@ -319,7 +319,7 @@ def _post_load(self): self._update_alpha_optimizer_parameters() def _update_alpha_optimizer_parameters(self): - if self._optimizer is not None: + if self._alpha_optim is not None: TorchUtils.update_optimizer_parameters(self._alpha_optim, [self._log_alpha]) @property