26 #define gfor(var, ...) for (var = af::seq(af::seq(__VA_ARGS__), true); af::gforToggle(); ) Definition: algorithm.h:14
A multi dimensional data container.
Definition: array.h:27
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
AFAPI array batchFunc(const array &lhs, const array &rhs, batchFunc_t func)
#define AFAPI
Definition: defines.h:31
array(* batchFunc_t)(const array &lhs, const array &rhs)
Definition: gfor.h:28
AFAPI void gforSet(bool val)