mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-17 08:56:08 +00:00
Fix stable_baselines3/common/type_aliases.py type hint (#1189)
This commit is contained in:
parent
0973b01b9d
commit
6902fac5e7
3 changed files with 3 additions and 3 deletions
|
|
@ -40,6 +40,7 @@ Others:
|
||||||
- Goal-conditioned environments are now characterized by the availability of the ``compute_reward`` method, rather than by their inheritance to ``gym.GoalEnv``
|
- Goal-conditioned environments are now characterized by the availability of the ``compute_reward`` method, rather than by their inheritance to ``gym.GoalEnv``
|
||||||
- Replaced ``CartPole-v0`` by ``CartPole-v1`` is tests
|
- Replaced ``CartPole-v0`` by ``CartPole-v1`` is tests
|
||||||
- Fixed ``tests/test_distributions.py`` type hint
|
- Fixed ``tests/test_distributions.py`` type hint
|
||||||
|
- Fixed ``stable_baselines3/common/type_aliases.py`` type hint
|
||||||
|
|
||||||
Documentation:
|
Documentation:
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,6 @@ exclude = (?x)(
|
||||||
| stable_baselines3/common/save_util.py$
|
| stable_baselines3/common/save_util.py$
|
||||||
| stable_baselines3/common/sb2_compat/rmsprop_tf_like.py$
|
| stable_baselines3/common/sb2_compat/rmsprop_tf_like.py$
|
||||||
| stable_baselines3/common/torch_layers.py$
|
| stable_baselines3/common/torch_layers.py$
|
||||||
| stable_baselines3/common/type_aliases.py$
|
|
||||||
| stable_baselines3/common/utils.py$
|
| stable_baselines3/common/utils.py$
|
||||||
| stable_baselines3/common/vec_env/__init__.py$
|
| stable_baselines3/common/vec_env/__init__.py$
|
||||||
| stable_baselines3/common/vec_env/base_vec_env.py$
|
| stable_baselines3/common/vec_env/base_vec_env.py$
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class RolloutBufferSamples(NamedTuple):
|
||||||
returns: th.Tensor
|
returns: th.Tensor
|
||||||
|
|
||||||
|
|
||||||
class DictRolloutBufferSamples(RolloutBufferSamples):
|
class DictRolloutBufferSamples(NamedTuple):
|
||||||
observations: TensorDict
|
observations: TensorDict
|
||||||
actions: th.Tensor
|
actions: th.Tensor
|
||||||
old_values: th.Tensor
|
old_values: th.Tensor
|
||||||
|
|
@ -53,7 +53,7 @@ class ReplayBufferSamples(NamedTuple):
|
||||||
rewards: th.Tensor
|
rewards: th.Tensor
|
||||||
|
|
||||||
|
|
||||||
class DictReplayBufferSamples(ReplayBufferSamples):
|
class DictReplayBufferSamples(NamedTuple):
|
||||||
observations: TensorDict
|
observations: TensorDict
|
||||||
actions: th.Tensor
|
actions: th.Tensor
|
||||||
next_observations: TensorDict
|
next_observations: TensorDict
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue