| 285 | |
| 286 | const size_t total = std::accumulate(written.begin(), written.end(), size_t{0}); |
| 287 | if (total != bytes.size()) { |
| 288 | throw std::runtime_error("quantized tensor byte size mismatch: " + std::string(name)); |
| 289 | } |
| 290 | return bytes; |
| 291 | } |
| 292 |
nothing calls this directly
no test coverage detected