Home
last modified time | relevance | path

Searched refs:NN_TRY (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NeuralNetworks/common/
DValidation.cpp107 version = combineVersions(version, NN_TRY(validationFunction(object))); in validateVector()
303 auto version = NN_TRY(validateOperandType(operandPerformance.type)); in validateCapabilitiesOperandPerformance()
305 NN_TRY(validateCapabilitiesPerformanceInfo(operandPerformance.info))); in validateCapabilitiesOperandPerformance()
313 NN_TRY(validateVector(operandPerformances.asVector(), validateCapabilitiesOperandPerformance)); in validateCapabilitiesOperandPerformanceTable()
319 NN_TRY(validateCapabilitiesOperandPerformanceTable(capabilities.operandPerformance)); in validateCapabilities()
322 NN_TRY(validateCapabilitiesPerformanceInfo( in validateCapabilities()
325 NN_TRY(validateCapabilitiesPerformanceInfo( in validateCapabilities()
328 version, NN_TRY(validateCapabilitiesPerformanceInfo(capabilities.ifPerformance))); in validateCapabilities()
330 version, NN_TRY(validateCapabilitiesPerformanceInfo(capabilities.whilePerformance))); in validateCapabilities()
357 NN_TRY(validateVector(extension.operandTypes, in validateExtension()
[all …]
DSharedMemoryAndroid.cpp110 .fd = NN_TRY(dupFd(fd)), in allocateSharedMemory()
117 auto handle = NN_TRY(hidlHandleFromUniqueFd(NN_TRY(dupFd(memory.fd)))); in map()
269 return createSharedMemoryFromUniqueFd(size, prot, NN_TRY(dupFd(fd)), offset); in createSharedMemoryFromFd()
DSharedMemory.cpp72 auto memory = NN_TRY(mBuilder.finish()); in finish()
75 const auto [pointer, size, context] = NN_TRY(map(memory);); in finish()
/packages/modules/NeuralNetworks/runtime/
DCompilationBuilder.cpp138 fds.push_back(NN_TRY(dupFd(fd))); in createCacheHandle()
150 handles.push_back(NN_TRY(createCacheHandle(fds[i]))); in createCacheHandleVec()
DManager.cpp274 const std::vector<bool> supported = NN_TRY(kInterface->getSupportedOperations(sliceModel)); in getSupportedOperationsImpl()
372 handles.push_back(NN_TRY(createCacheHandle(filename, createIfNotExist))); in createCacheHandleVec()
411 NN_TRY(createCacheHandleVec(numCacheFiles.first, cacheFileName, createIfNotExist)); in getCacheHandles()
415 NN_TRY(createCacheHandleVec(numCacheFiles.second, cacheFileName, createIfNotExist)); in getCacheHandles()
427 auto cache = NN_TRY(getCacheHandles(cacheInfo, token, kInterface->getNumberOfCacheFilesNeeded(), in prepareModelFromCacheInternal()
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalPreparedModel.cpp155 NN_TRY(makeExecutionResult(createRunTimePoolInfos(request, *kBufferTracker, *this))); in execute()
237 NN_TRY(createRunTimePoolInfos(request, *kBufferTracker, *this)); in executeFenced()
DCanonicalBuffer.cpp91 NN_TRY(result); in copyFrom()
DLimitedSupportDevice.cpp94 const auto supportedOperations = NN_TRY(kSupportedOperationsFunction(model)); in prepareModel()
/packages/modules/NeuralNetworks/common/include/nnapi/
DSharedMemory.h78 fds.push_back(NN_TRY(dupFd(fd))); in dupFds()
DResult.h144 #define NN_TRY(expr) \ macro