(self, instance)
Updates the active runtime instance.

    Args:
      instance: Instance of runtime.Base.
Updates the active runtime instance.
Updates the active runtime instance .
def set_runtime(self, instance):
    """Updates the active runtime instance.

    Args:
      instance: Instance of runtime.Base.
    """
    if self._runtime:
      self._runtime.on_error -= self._on_error
      self._runtime.on_episode_begin -= self._clear_error
    self._runtime = instance
    if self._runtime:
      self._runtime.on_error += self._on_error
      self._runtime.on_episode_begin += self._clear_error
def set_runtime ( self , instance ) : if self . _runtime : self . _runtime . on_error -= self . _on_error self . _runtime . on_episode_begin -= self . _clear_error self . _runtime = instance if self . _runtime : self . _runtime . on_error += self . _on_error self . _runtime . on_episode_begin += self . _clear_error