def get_backend_id(A):
    backend_id = ct.c_int(BACKEND.CPU.value)
    safe_call(backend.get().af_get_backend_id(ct.pointer(backend_id), A.arr))
    return backend.get_name(backend_id.value)
Get backend name of an array
dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/library.py/get_backend_id