Home
last modified time | relevance | path

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

/frameworks/ml/nn/driver/cache/nnCache/
DnnCache_test.cpp40 class NNCacheTest : public ::testing::TestWithParam<NNCache::Policy> {
43 mCache = NNCache::get(); in SetUp()
51 NNCache* mCache;
55 ::testing::Values(NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::HALVE),
56 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::HALVE),
58 NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::FIT),
59 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::FIT),
61 NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::FIT_HALVE),
62 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::FIT_HALVE)));
147 case NNCache::Capacity::HALVE: in TEST_P()
[all …]
DnnCache.cpp42 NNCache::NNCache() : in NNCache() function in android::NNCache
49 NNCache::~NNCache() { in ~NNCache()
52 NNCache NNCache::sCache;
54 NNCache* NNCache::get() { in get()
58 void NNCache::initialize(size_t maxKeySize, size_t maxValueSize, size_t maxTotalSize, in initialize()
68 void NNCache::terminate() { in terminate()
75 void NNCache::setBlob(const void* key, ssize_t keySize, in setBlob()
103 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, in getBlob()
119 ssize_t NNCache::getBlob(const void* key, ssize_t keySize, in getBlob()
135 void NNCache::setCacheFilename(const char* filename) { in setCacheFilename()
[all …]
DnnCache.h31 class NNCache {
42 static NNCache* get();
86 NNCache();
87 ~NNCache();
90 NNCache(const NNCache&) = delete;
91 void operator=(const NNCache&) = delete;
152 static NNCache sCache;