Skip to content

Commit 586a541

Browse files
louisfauryLouis Faury
and
Louis Faury
authored
[Doc] Fix EnvCreator's doc (#2868)
Co-authored-by: Louis Faury <[email protected]>
1 parent 7df8317 commit 586a541

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchrl/envs/env_creator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class EnvCreator:
3737
3838
Examples:
3939
>>> # We create the same environment on 2 processes using VecNorm
40-
>>> # and check that the discounted count of observations match on
40+
>>> # and check that the discounted count of observations matches on
4141
>>> # both workers, even if one has not executed any step
4242
>>> import time
4343
>>> from torchrl.envs.libs.gym import GymEnv
@@ -103,7 +103,7 @@ def make_variant(self, **kwargs) -> EnvCreator:
103103
Examples:
104104
>>> from torchrl.envs import GymEnv
105105
>>> env_creator_pendulum = EnvCreator(GymEnv, env_name="Pendulum-v1")
106-
>>> env_creator_cartpole = env_creator_pendulum(env_name="CartPole-v1")
106+
>>> env_creator_cartpole = env_creator_pendulum.make_variant(env_name="CartPole-v1")
107107
108108
"""
109109
# Copy self

0 commit comments

Comments
 (0)