Exemplo n.º 1
0
 def kill_ray_env():
     try:
         for e in env.envs:
             e.__ray_terminate__.remote()
     except AttributeError:
         pass
     ray.shutdown()
def kill_swarm(swarm):
    try:
        for e in swarm.swarms:
            e.__ray_terminate__.remote()
        swarm.param_server.__ray_terminate__.remote()
    except AttributeError:
        pass
    ray.shutdown()
Exemplo n.º 3
0
def kill_swarm(swarm):
    try:
        swarm.__ray_terminate__.remote()
    except AttributeError:
        pass
    ray.shutdown()