def get_device():
    c_dev = ct.c_int(0)
    safe_call(backend.get().af_get_device(ct.pointer(c_dev)))
    return c_dev.value
Ensure disabled groups are excluded from permission data.
dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/device.py/get_device--crossover with--dataset/ETHPy150Open dropbox/grouper/tests/test_models.py/test_permission_exclude_inactive