Skip to content

Commit

Permalink
Fix MetaEnv initialization (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
SliverySky committed Jul 3, 2023
1 parent b93f77a commit db5cee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learn2learn/gym/envs/meta_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db5cee3

Please sign in to comment.