A high-performance general-purpose compute library

Get's the backend enum for an array More...

Functions

af_err af_get_backend_id (af_backend *backend, const af_array in)
 
af::Backend getBackendId (const array &in)
 

Detailed Description

Get's the backend enum for an array

This will return one of the values from the af_backend enum. The return value specifies which backend the array was created on.


Function Documentation

◆ af_get_backend_id()

af_err af_get_backend_id ( af_backend * backend,
const af_array in )
Parameters
[out]backendtakes one of the values of enum af_backend
[in]inis the array who's backend is to be queried
Returns
af_err error code

◆ getBackendId()

af::Backend getBackendId ( const array & in)
Parameters
[in]inis the array who's backend is to be queried
Returns
af_backend which is the backend on which the array is created