| 200 | return false; |
| 201 | } |
| 202 | static std::pair<const void*, size_t> getCache(std::shared_ptr<Runtime> &rt) { |
| 203 | auto res = rt->onGetCache(); |
| 204 | if (res.first != nullptr) { |
| 205 | return res; |
| 206 | } |
| 207 | return std::make_pair(nullptr, 0); |
| 208 | } |
| 209 | |
| 210 | static void writeCacheFile(std::shared_ptr<Cache> cache, std::pair<const void*, size_t> buffer) { |
| 211 | auto verifyInfo = std::make_pair((const void*)cache->modelBuffer.get(), cache->cacheOffset); |
no test coverage detected