Home
last modified time | relevance | path

Searched refs:numModelCache (Results 1 – 12 of 12) sorted by relevance

/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DNumberOfCacheFiles.aidl37 int numModelCache;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DNumberOfCacheFiles.aidl37 int numModelCache;
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DDevice.cpp75 V1_0::ErrorStatus status, uint32_t numModelCache, uint32_t numDataCache) { in numberOfCacheFilesNeededCallback() argument
77 if (numModelCache > nn::kMaxNumberOfCacheFiles) { in numberOfCacheFilesNeededCallback()
80 << numModelCache << " vs " << nn::kMaxNumberOfCacheFiles << ")"; in numberOfCacheFilesNeededCallback()
87 return std::make_pair(numModelCache, numDataCache); in numberOfCacheFilesNeededCallback()
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DDevice.cpp107 if (numberOfCacheFiles.numDataCache < 0 || numberOfCacheFiles.numModelCache < 0) { in getNumberOfCacheFilesNeededFrom()
110 if (static_cast<uint32_t>(numberOfCacheFiles.numModelCache) > nn::kMaxNumberOfCacheFiles) { in getNumberOfCacheFilesNeededFrom()
113 << numberOfCacheFiles.numModelCache << " vs " in getNumberOfCacheFilesNeededFrom()
122 return std::make_pair(numberOfCacheFiles.numModelCache, numberOfCacheFiles.numDataCache); in getNumberOfCacheFilesNeededFrom()
DInvalidDevice.cpp60 .numModelCache = 0, in create()
150 if (modelCache.size() != static_cast<size_t>(kNumberOfCacheFiles.numModelCache)) { in prepareModel()
/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DBasicTests.cpp122 [](ErrorStatus status, uint32_t numModelCache, uint32_t numDataCache) { in TEST_P() argument
124 EXPECT_LE(numModelCache, in TEST_P()
DCompilationCachingTests.cpp240 [this](ErrorStatus status, uint32_t numModelCache, uint32_t numDataCache) { in SetUp() argument
242 mNumModelCache = numModelCache; in SetUp()
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DDeviceTest.cpp61 constexpr NumberOfCacheFiles kNumberOfCacheFiles = {.numModelCache = nn::kMaxNumberOfCacheFiles - 1,
314 kNumberOfCacheFiles.numModelCache, kNumberOfCacheFiles.numDataCache); in TEST()
339 .numModelCache = nn::kMaxNumberOfCacheFiles + 1, in TEST()
357 .numModelCache = nn::kMaxNumberOfCacheFiles, in TEST()
/hardware/interfaces/neuralnetworks/1.2/
DIDevice.hal157 * @return numModelCache An unsigned integer indicating how many files for model cache
165 generates (ErrorStatus status, uint32_t numModelCache, uint32_t numDataCache);
237 * or match the numModelCache returned from getNumberOfCacheFilesNeeded. The cache
322 * the vector must match the numModelCache returned from getNumberOfCacheFilesNeeded.
/hardware/interfaces/neuralnetworks/utils/adapter/src/
DDevice.cpp444 const auto [numModelCache, numDataCache] = kDevice->getNumberOfCacheFilesNeeded(); in getNumberOfCacheFilesNeeded()
445 cb(V1_0::ErrorStatus::NONE, numModelCache, numDataCache); in getNumberOfCacheFilesNeeded()
/hardware/interfaces/neuralnetworks/1.3/
DIDevice.hal172 * not provided, or match the numModelCache returned from
283 * the vector must match the numModelCache returned from getNumberOfCacheFilesNeeded.
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DCompilationCachingTests.cpp242 mNumModelCache = numCacheFiles.numModelCache; in SetUp()