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

Function wrap_dilated

src/backend/cpu/wrap.cpp:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59template<typename T>
60Array<T> wrap_dilated(const Array<T> &in, const dim_t ox, const dim_t oy,
61 const dim_t wx, const dim_t wy, const dim_t sx,
62 const dim_t sy, const dim_t px, const dim_t py,
63 const dim_t dx, const dim_t dy, const bool is_column) {
64 af::dim4 idims = in.dims();
65 af::dim4 odims(ox, oy, idims[2], idims[3]);
66
67 Array<T> out = createValueArray<T>(odims, scalar<T>(0));
68 out.eval();
69 in.eval();
70
71 getQueue().enqueue(kernel::wrap_dim_dilated<T>, out, in, wx, wy, sx, sy, px,
72 py, dx, dy, is_column);
73
74 return out;
75}
76
77#define INSTANTIATE(T) \
78 template Array<T> wrap_dilated<T>( \

Callers 1

conv2DataGradientFunction · 0.70

Calls 4

getQueueFunction · 0.50
dimsMethod · 0.45
evalMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected