26#define gfor(var, ...) for (var = af::seq(af::seq(__VA_ARGS__), true); af::gforToggle(); )
A multi dimensional data container.
Definition: array.h:27
#define AFAPI
Definition: defines.h:31
Definition: algorithm.h:15
AFAPI void gforSet(bool val)
array(* batchFunc_t)(const array &lhs, const array &rhs)
Definition: gfor.h:28
AFAPI array batchFunc(const array &lhs, const array &rhs, batchFunc_t func)
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:329