| 62 | } |
| 63 | |
| 64 | void KVCacheManager::resetKVCacheFileSize(size_t keySize, size_t valueSize) { |
| 65 | if (MNNSetFileSize(mKeyCacheFD, keySize) != MNN::NO_ERROR || MNNSetFileSize(mValueCacheFD, valueSize) != MNN::NO_ERROR) { |
| 66 | MNN_PRINT("Failed to resize the kvcache files!\n"); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | /* |
| 71 | ** @brief Memory-map the kvcache file |
nothing calls this directly
no test coverage detected