Searched refs:NN_TRY (Results 1 – 10 of 10) sorted by relevance
/packages/modules/NeuralNetworks/common/ |
D | Validation.cpp | 107 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 …]
|
D | SharedMemoryAndroid.cpp | 110 .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()
|
D | SharedMemory.cpp | 72 auto memory = NN_TRY(mBuilder.finish()); in finish() 75 const auto [pointer, size, context] = NN_TRY(map(memory);); in finish()
|
/packages/modules/NeuralNetworks/runtime/ |
D | CompilationBuilder.cpp | 138 fds.push_back(NN_TRY(dupFd(fd))); in createCacheHandle() 150 handles.push_back(NN_TRY(createCacheHandle(fds[i]))); in createCacheHandleVec()
|
D | Manager.cpp | 274 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/ |
D | CanonicalPreparedModel.cpp | 155 NN_TRY(makeExecutionResult(createRunTimePoolInfos(request, *kBufferTracker, *this))); in execute() 237 NN_TRY(createRunTimePoolInfos(request, *kBufferTracker, *this)); in executeFenced()
|
D | CanonicalBuffer.cpp | 91 NN_TRY(result); in copyFrom()
|
D | LimitedSupportDevice.cpp | 94 const auto supportedOperations = NN_TRY(kSupportedOperationsFunction(model)); in prepareModel()
|
/packages/modules/NeuralNetworks/common/include/nnapi/ |
D | SharedMemory.h | 78 fds.push_back(NN_TRY(dupFd(fd))); in dupFds()
|
D | Result.h | 144 #define NN_TRY(expr) \ macro
|