| 51 | |
| 52 | template<typename T> |
| 53 | Array<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>( \ |
no test coverage detected