| 378 | return tensor; |
| 379 | } |
| 380 | |
| 381 | void set_backend_tensor( |
| 382 | ggml_tensor * tensor, |
| 383 | std::string_view name, |
| 384 | TensorStorageType storage_type, |
| 385 | const std::vector<int64_t> & expected_shape) const override { |
| 386 | const auto * info = find_info(name); |
| 387 | if (info == nullptr) { |
| 388 | throw std::runtime_error("missing tensor: " + std::string(name)); |
| 389 | } |
| 390 | validate_expected_shape(name, info->shape, expected_shape); |
nothing calls this directly
no test coverage detected