Skip to content

Commit f1b6aad

Browse files
author
Vincent Moens
committed
amend
1 parent 8b2c2aa commit f1b6aad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

torchrl/modules/distributions/continuous.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.
5+
from __future__ import annotations
6+
57
import warnings
68
from numbers import Number
79
from typing import Dict, Optional, Sequence, Tuple, Union

torchrl/objectives/sac.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def _qvalue_v1_loss(
647647
self, tensordict: TensorDictBase
648648
) -> Tuple[Tensor, Dict[str, Tensor]]:
649649
target_params = self._cached_target_params_actor_value
650-
with set_exploration_type(self.deterministic_mode):
650+
with set_exploration_type(self.deterministic_sampling_mode):
651651
target_value = self.value_estimator.value_estimate(
652652
tensordict, target_params=target_params
653653
).squeeze(-1)

0 commit comments

Comments
 (0)