| 644 | } |
| 645 | |
| 646 | void SetLayout(const char *layout_string) override { |
| 647 | if (layout_string) { |
| 648 | TensorLayout layout(layout_string); |
| 649 | Validate(layout, tl_->sample_dim()); |
| 650 | tl_->SetLayout(layout); |
| 651 | } else { |
| 652 | tl_->SetLayout(""); |
| 653 | } |
| 654 | } |
| 655 | |
| 656 | const char *GetLayout() const override { |
| 657 | auto &layout = tl_->GetLayout(); |
nothing calls this directly
no test coverage detected