MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / _restart_runtime

Method _restart_runtime

dm_control/viewer/application.py:290–298  ·  view source on GitHub ↗

Restarts the episode, resetting environment, model, and data.

(self)

Source from the content-addressed store, hash-verified

288 self._on_reload(zoom_to_scene=zoom_to_scene)
289
290 def _restart_runtime(self):
291 """Restarts the episode, resetting environment, model, and data."""
292 if self._runtime:
293 self._runtime.stop()
294 self._load_environment(zoom_to_scene=False)
295
296 if self._policy:
297 if hasattr(self._policy, 'reset'):
298 self._policy.reset()
299
300 def _advance_simulation(self):
301 if self._runtime:

Callers 1

test_restart_runtimeMethod · 0.80

Calls 3

_load_environmentMethod · 0.95
stopMethod · 0.80
resetMethod · 0.45

Tested by 1

test_restart_runtimeMethod · 0.64