Remove inappropriate warning (warns about supported case according to docstring)
This commit is contained in:
parent
ff398beed9
commit
24b7b82e56
@ -97,7 +97,6 @@ class Collector:
|
||||
) -> None:
|
||||
super().__init__()
|
||||
if isinstance(env, gym.Env) and not hasattr(env, "__len__"):
|
||||
warnings.warn("Single environment detected, wrap to DummyVectorEnv.")
|
||||
self.env = DummyVectorEnv([lambda: env])
|
||||
else:
|
||||
self.env = env # type: ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user