| 276 | } |
| 277 | |
| 278 | void TensorImplDft::set_layout(const Layout& layout) { |
| 279 | bool host = is_host(); |
| 280 | auto mgb_layout = to_impl_layout(layout); |
| 281 | if (host) { |
| 282 | m_host_tensor->dtype(mgb_layout.dtype); |
| 283 | m_host_tensor->resize(mgb_layout); |
| 284 | } else { |
| 285 | m_dev_tensor->dtype(mgb_layout.dtype); |
| 286 | m_dev_tensor->resize(mgb_layout); |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | void TensorImplDft::reshape(const Layout& layout) { |
| 291 | auto mgb_layout = to_impl_layout(layout); |
no test coverage detected