| 85 | } |
| 86 | |
| 87 | ggml_tensor * get_tensor(std::string name) { |
| 88 | if (tensors.find(name) == tensors.end()) { |
| 89 | return nullptr; |
| 90 | } |
| 91 | return tensors[name]; |
| 92 | } |
| 93 | |
| 94 | void read_tensor_data(std::string name, std::vector<uint8_t> & buf) { |
| 95 | if (tensors.find(name) == tensors.end()) { |
no test coverage detected