Home
last modified time | relevance | path

Searched refs:NN_ERROR (Results 1 – 18 of 18) sorted by relevance

/packages/modules/NeuralNetworks/common/
DSharedMemoryAndroid.cpp72 return NN_ERROR() << "Failed to create native_handle"; in hidlHandleFromUniqueFd()
94 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in allocateSharedMemory()
98 return NN_ERROR() << "IAllocator::allocate returned an invalid memory object with " in allocateSharedMemory()
102 return NN_ERROR() << "IAllocator::allocate returned an invalid memory object with " in allocateSharedMemory()
122 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) << "Failed to map memory"; in map()
127 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) << "Failed to get the mapped pointer"; in map()
132 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) << "Failed to get the mapped size"; in map()
152 return NN_ERROR() << "ASharedMemory_create failed"; in allocateSharedMemory()
164 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT) << "Cannot map ashmem memory"; in map()
196 return NN_ERROR() << "Can't mmap the file descriptor."; in map()
[all …]
DTypes.cpp83 return NN_ERROR() << "Failed to create OperandPerformanceTable: Input must be sorted by " in create()
127 return NN_ERROR() << "Invalid sync fence handle passed to SyncFence::create"; in create()
DTypeUtils.cpp173 return NN_ERROR() in countNumberOfConsumers()
189 return NN_ERROR() << os.str(); in combineDimensions()
198 return NN_ERROR() << os.str(); in combineDimensions()
DValidation.cpp58 return NN_ERROR() << "NN_VALIDATE failed (" << __FILE__ << ":" << __LINE__ << "): "
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalDevice.cpp143 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT) << result.error(); in getSupportedOperations()
169 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT) << "Invalid Model: " << result.error(); in prepareModel()
172 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT) in prepareModel()
176 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT) << "Invalid Priority: " << result.error(); in prepareModel()
181 return NN_ERROR(ErrorStatus::MISSED_DEADLINE_PERSISTENT); in prepareModel()
186 return NN_ERROR() << "setRunTimePoolInfosFromCanonicalMemories failed"; in prepareModel()
199 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in prepareModelFromCache()
223 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT) in allocate()
228 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in allocate()
237 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in allocate()
[all …]
DCanonicalPreparedModel.cpp50 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in createRunTimePoolInfos()
58 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT); in createRunTimePoolInfos()
63 return NN_ERROR(validationStatus); in createRunTimePoolInfos()
146 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT) << result.error(); in execute()
149 return NN_ERROR(ErrorStatus::MISSED_DEADLINE_PERSISTENT); in execute()
178 return NN_ERROR(updateStatus); in execute()
181 return NN_ERROR(executionStatus, outputShapes); in execute()
206 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT) << result.error(); in executeFenced()
209 return NN_ERROR(ErrorStatus::MISSED_DEADLINE_PERSISTENT); in executeFenced()
215 return NN_ERROR(ErrorStatus::INVALID_ARGUMENT); in executeFenced()
[all …]
DCanonicalBuffer.cpp44 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in copyFromInternal()
50 return NN_ERROR(validationStatus); in copyFromInternal()
73 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in copyTo()
79 return NN_ERROR(validationStatus); in copyTo()
DLimitedSupportDevice.cpp97 return NN_ERROR(nn::ErrorStatus::INVALID_ARGUMENT) << "Not all operations are supported"; in prepareModel()
/packages/modules/NeuralNetworks/runtime/
DManager.cpp270 return NN_ERROR() << "getSlice(" << featureLevel << ") failed"; in getSupportedOperationsImpl()
277 return NN_ERROR() << "IDevice::getSupportedOperations returned a vector of length " in getSupportedOperationsImpl()
350 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in createCacheHandle()
384 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in getCacheHandles()
389 return NN_ERROR(ErrorStatus::GENERAL_FAILURE) in getCacheHandles()
/packages/modules/NeuralNetworks/common/include/nnapi/
DResult.h93 #define NN_ERROR(...) \ macro
/packages/modules/NeuralNetworks/common/operations/
DLogSoftmax.cpp86 return NN_ERROR() << "Unsupported input tensor type for operation " << kOperationName; in validate()
DInstanceNormalization.cpp119 return NN_ERROR() << "Unsupported input tensor type for operation " << kOperationName; in validate()
DUnidirectionalSequenceRNN.cpp137 return NN_ERROR() << "Unsupported input operand type for UNIDIRECTIONAL_SEQUENCE_RNN op: " in validate()
DRoiPooling.cpp218 return NN_ERROR() << "Unsupported input tensor type for operation " << kOperationName; in validate()
DHeatmapMaxKeypoint.cpp253 return NN_ERROR() << "Unsupported input tensor type for operation " << kOperationName; in validate()
DBidirectionalSequenceRNN.cpp328 return NN_ERROR() << "Unsupported input operand type for UNIDIRECTIONAL_SEQUENCE_RNN op: " in validate()
DRoiAlign.cpp375 return NN_ERROR() << "Unsupported input tensor type for operation " << kOperationName; in validate()
DGenerateProposals.cpp219 return NN_ERROR() << "Unsupported input tensor type for operation " << kOperationName; in validate()
222 return NN_ERROR() << "Unsupported input tensor type for operation " << kOperationName; in validate()