26 #if defined(DATA_TYPE) && defined(DEPTH_IN) && defined(P1) && defined(P2) && defined(P3) && defined(P4) 59 int out_index[4] = { 0 };
60 int in_index[4] = { 0 };
62 in_index[0] = get_global_id(0);
63 in_index[1] = get_global_id(1);
64 in_index[2] = get_global_id(2) % DEPTH_IN;
65 in_index[3] = get_global_id(2) / DEPTH_IN;
67 out_index[0] = in_index[P1];
68 out_index[1] = in_index[P2];
69 out_index[2] = in_index[P3];
70 out_index[3] = in_index[P4];
74 #endif // defined(DATA_TYPE) && defined(DEPTH_IN) && defined(P1) && defined(P2) && defined(P3) && defined(P4) __global uchar * ptr
Pointer to the starting postion of the buffer.
Structure to hold 4D tensor information.
void permute(Dimensions< T > &dimensions, const PermutationVector &perm)
Permutes given Dimensions according to a permutation vector.
#define CONVERT_TO_TENSOR4D_STRUCT_NO_STEP(name, mod_size)
__global const uchar * tensor4D_offset(const Tensor4D *tensor, int x, int y, int z, int w)
Get the pointer position of a Tensor4D.
#define CONVERT_TO_TENSOR4D_STRUCT(name, mod_size)
#define TENSOR4D_DECLARATION(name)