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

Function wrap_dilated

src/backend/oneapi/wrap.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

conv2DataGradientFunction · 0.70

Calls 1

dimsMethod · 0.45

Tested by

no test coverage detected