

def _worker_collect_one_path(G, max_path_length):
    path = rollout(G.env, G.policy, max_path_length)
    return (path, len(path['rewards']))

dataset/ETHPy150Open rllab/rllab/rllab/sampler/parallel_sampler.py _worker_collect_one_path/original