| 165 | } |
| 166 | |
| 167 | array identity(const dim4 &dims, const af::dtype type) { |
| 168 | af_array res; |
| 169 | AF_THROW(af_identity(&res, dims.ndims(), dims.get(), type)); |
| 170 | return array(res); |
| 171 | } |
| 172 | |
| 173 | array identity(const dim_t d0, const af::dtype ty) { |
| 174 | return identity(dim4(d0), ty); |
no test coverage detected