MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / reorder

Function reorder

src/backend/opencl/reorder.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace opencl {
21template<typename T>
22Array<T> reorder(const Array<T> &in, const af::dim4 &rdims) {
23 const af::dim4 &iDims = in.dims();
24 af::dim4 oDims(0);
25 for (int i = 0; i < 4; i++) { oDims[i] = iDims[rdims[i]]; }
26
27 Array<T> out = createEmptyArray<T>(oDims);
28
29 kernel::reorder<T>(out, in, rdims.get());
30
31 return out;
32}
33
34#define INSTANTIATE(T) \
35 template Array<T> reorder<T>(const Array<T> &in, const af::dim4 &rdims);

Callers 3

convolve2_unwrapFunction · 0.70
conv2DataGradientFunction · 0.70
conv2FilterGradientFunction · 0.70

Calls 2

dimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected