| 23 | |
| 24 | template<typename T> |
| 25 | Array<T> identity(const dim4& dims) { |
| 26 | Array<T> out = createEmptyArray<T>(dims); |
| 27 | |
| 28 | getQueue().enqueue(kernel::identity<T>, out); |
| 29 | |
| 30 | return out; |
| 31 | } |
| 32 | |
| 33 | #define INSTANTIATE_IDENTITY(T) \ |
| 34 | template Array<T> identity<T>(const af::dim4& dims); |