Skip to content

Commit fe1a361

Browse files
committed
Add a defensive call to MjrContext.free() in the quickstart example code
This is a temporary workaround for issue google-deepmind#48. PiperOrigin-RevId: 216900306
1 parent 64843a8 commit fe1a361

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dm_control/suite/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ env = suite.load(domain_name="cartpole", task_name="swingup")
1515
# Iterate over a task set:
1616
for domain_name, task_name in suite.BENCHMARKING:
1717
env = suite.load(domain_name, task_name)
18+
# TODO(b/117645013): This is a temporary workaround for issue #48.
19+
env.physics.contexts.mujoco.free()
1820

1921
# Step through an episode and print out reward, discount and observation.
2022
action_spec = env.action_spec()

0 commit comments

Comments
 (0)