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

Function reorder

src/backend/cpu/reorder.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22template<typename T>
23Array<T> reorder(const Array<T> &in, const af::dim4 &rdims) {
24 const af::dim4 &iDims = in.dims();
25 af::dim4 oDims(0);
26 for (int i = 0; i < 4; i++) { oDims[i] = iDims[rdims[i]]; }
27
28 Array<T> out = createEmptyArray<T>(oDims);
29 getQueue().enqueue(kernel::reorder<T>, out, in, oDims, rdims);
30 return out;
31}
32
33#define INSTANTIATE(T) \
34 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 3

getQueueFunction · 0.50
dimsMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected