| 236 | |
| 237 | template <typename Device> |
| 238 | inline Status DoMatrixTransposeImpl(const Device& device, const Tensor& in, |
| 239 | bool conjugate, Tensor* out) { |
| 240 | const int ndims = in.dims(); |
| 241 | if (ndims == 0) return Status::OK(); |
| 242 | TransposePermsVec perm(ndims); |
| 243 | std::iota(perm.begin(), perm.end(), 0); |
| 244 | std::swap(perm[ndims - 2], perm[ndims - 1]); |
| 245 | return DoTransposeImpl(device, in, perm, conjugate, out); |
| 246 | } |
| 247 | |
| 248 | #ifdef TENSORFLOW_USE_SYCL |
| 249 | // For SYCL lets always go through Eigen |
no test coverage detected