def alloc_pinned(num_bytes):
    ptr = ct.c_void_p(0)
    c_num_bytes = c_dim_t(num_bytes)
    safe_call(backend.get().af_alloc_pinned(ct.pointer(ptr), c_num_bytes))
    return ptr.value
.. todo::
dataset/ETHPy150Open arrayfire/arrayfire-python/arrayfire/device.py/alloc_pinned--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/costs/cost.py/SumOfCosts.get_fixed_var_descr