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

Function wrap_dilated

src/backend/opencl/wrap.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template<typename T>
53Array<T> wrap_dilated(const Array<T> &in, const dim_t ox, const dim_t oy,
54 const dim_t wx, const dim_t wy, const dim_t sx,
55 const dim_t sy, const dim_t px, const dim_t py,
56 const dim_t dx, const dim_t dy, const bool is_column) {
57 af::dim4 idims = in.dims();
58 af::dim4 odims(ox, oy, idims[2], idims[3]);
59 Array<T> out = createValueArray<T>(odims, scalar<T>(0));
60
61 kernel::wrap_dilated<T>(out, in, wx, wy, sx, sy, px, py, dx, dy, is_column);
62 return out;
63}
64
65#define INSTANTIATE(T) \
66 template Array<T> wrap_dilated<T>( \

Callers 1

conv2DataGradientFunction · 0.70

Calls 1

dimsMethod · 0.45

Tested by

no test coverage detected