Skip to content

About Make_env  #5

@Yuxing-Wang-THU

Description

@Yuxing-Wang-THU

Hi! I am trying to use multiple environments in my program, like the following code:

args = [setting1, setting2, setting3]
for i in range(3):
     env = make_env(args[i])
    # environmental interactions and training process

When I switch to the next environmental setting, I use ti.reset() to successfully release GPU memory (this works, thx), but I found that the cpu memory of the program still increase (this might because the program needs to execute env.initialize() again). Is there any way to free up cpu memory occupied by the previous environment? Otherwise, the computer's memory will overflow.

Thx!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions