| 191 | } |
| 192 | |
| 193 | bool has_backend_addressable_layout(const ggml_tensor * tensor) noexcept { |
| 194 | return tensor != nullptr && |
| 195 | ggml_is_contiguous(tensor) && |
| 196 | tensor->view_offs == 0; |
| 197 | } |
| 198 | |
| 199 | TensorValue ensure_backend_addressable_layout(ModuleBuildContext & ctx, const TensorValue & value) { |
| 200 | if (!value.valid()) { |
no test coverage detected