Home
last modified time | relevance | path

Searched refs:NNCache (Results 1 – 3 of 3) sorted by relevance

/packages/modules/NeuralNetworks/driver/cache/nnCache/
DnnCache_test.cpp38 class NNCacheTest : public ::testing::TestWithParam<NNCache::Policy> {
40 virtual void SetUp() { mCache = NNCache::get(); } in SetUp()
47 NNCache* mCache;
52 ::testing::Values(NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::HALVE),
53 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::HALVE),
55 NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::FIT),
56 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::FIT),
58 NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::FIT_HALVE),
59 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::FIT_HALVE)));
143 case NNCache::Capacity::HALVE: in TEST_P()
[all …]
DnnCache.cpp43 NNCache::NNCache() in NNCache() function in android::NNCache
51 NNCache::~NNCache() {} in ~NNCache()
53 NNCache NNCache::sCache;
55 NNCache* NNCache::get() { in get()
59 void NNCache::initialize(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize, in initialize()
69 void NNCache::terminate() { in terminate()
76 void NNCache::setBlob(const void* key, ssize_t keySize, const void* value, ssize_t valueSize) { in setBlob()
103 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, void* value, ssize_t valueSize) { in getBlob()
118 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, void** value, in getBlob()
134 void NNCache::setCacheFilename(const char* filename) { in setCacheFilename()
[all …]
DnnCache.h31 class NNCache {
41 static NNCache* get();
83 NNCache();
84 ~NNCache();
87 NNCache(const NNCache&) = delete;
88 void operator=(const NNCache&) = delete;
149 static NNCache sCache;