def have_cuda()

in phasic_policy_gradient/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"
    )