| 23 | |
| 24 | template<typename T> |
| 25 | Array<float> moments(const Array<T> &in, const af_moment_type moment) { |
| 26 | ONEAPI_NOT_SUPPORTED("moments Not supported"); |
| 27 | |
| 28 | in.eval(); |
| 29 | dim4 odims, idims = in.dims(); |
| 30 | dim_t moments_dim = bitCount(moment); |
| 31 | |
| 32 | odims[0] = moments_dim; |
| 33 | odims[1] = 1; |
| 34 | odims[2] = idims[2]; |
| 35 | odims[3] = idims[3]; |
| 36 | |
| 37 | Array<float> out = createValueArray<float>(odims, 0.f); |
| 38 | out.eval(); |
| 39 | |
| 40 | // kernel::moments<T>(out, in, moment); |
| 41 | return out; |
| 42 | } |
| 43 | |
| 44 | #define INSTANTIATE(T) \ |
| 45 | template Array<float> moments<T>(const Array<T> &in, \ |