def get_device_count():
    c_num = ct.c_int(0)
    safe_call(backend.get().af_get_device_count(ct.pointer(c_num)))
    return c_num.value
Returns the number of devices available.
dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/device.py/get_device_count