def have_cuda()

in ppo_ewma/torch_util.py [0:0]


def have_cuda():
    return (
        th.has_cuda and th.cuda.is_available() and not os.getenv("RCALL_NUM_GPU") == "0"
    )