Пример #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()
Пример #3
0
def kill_swarm(swarm):
    try:
        swarm.__ray_terminate__.remote()
    except AttributeError:
        pass
    ray.shutdown()