File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments