| 143 | } |
| 144 | |
| 145 | static bool IsAllContiguous(const TensorTuple& tensors) { |
| 146 | for (const auto& t : tensors) { |
| 147 | if (t && !t->is_contiguous()) { return false; } |
| 148 | } |
| 149 | return true; |
| 150 | } |
| 151 | |
| 152 | Maybe<void> TensorLayoutProcessor::Apply() { |
| 153 | if (LazyMode::is_enabled()) { return Maybe<void>::Ok(); } |