| 309 | } |
| 310 | |
| 311 | void SetLayout(const char *layout_string) override { |
| 312 | if (layout_string) { |
| 313 | TensorLayout layout(layout_string); |
| 314 | Validate(layout, t_->ndim()); |
| 315 | t_->SetLayout(layout); |
| 316 | } else { |
| 317 | t_->SetLayout(""); |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | const char *GetLayout() const override { |
| 322 | auto &layout = t_->GetLayout(); |
no test coverage detected