From db5cee3795490071282bbdfa81179ef732349196 Mon Sep 17 00:00:00 2001 From: Tianye Shu <47651611+SliverySky@users.noreply.github.com> Date: Tue, 4 Jul 2023 02:50:46 +0800 Subject: [PATCH] Fix MetaEnv initialization (#412) --- learn2learn/gym/envs/meta_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learn2learn/gym/envs/meta_env.py b/learn2learn/gym/envs/meta_env.py index 53613918..74f91f00 100644 --- a/learn2learn/gym/envs/meta_env.py +++ b/learn2learn/gym/envs/meta_env.py @@ -30,7 +30,7 @@ class MetaEnv(Env): """ def __init__(self, task=None): - super(MetaEnv, self).__init__() + Env.__init__(self) if task is None: task = self.sample_tasks(1)[0] self.set_task(task)