Home
last modified time | relevance | path

Searched refs:ANEURALNETWORKS_NO_ERROR (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/NeuralNetworks/runtime/test/
DTestValidation.cpp65 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp()
75 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand()
80 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand()
117 ASSERT_EQ(addOperation(ANEURALNETWORKS_ADD, inList, outList), ANEURALNETWORKS_NO_ERROR); in createModel()
118 ASSERT_EQ(identifyInputsAndOutputs(inList, outList), ANEURALNETWORKS_NO_ERROR); in createModel()
119 ASSERT_EQ(modelFinish(), ANEURALNETWORKS_NO_ERROR); in createModel()
171 ANEURALNETWORKS_NO_ERROR); in getExtensionOperandType()
187 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp()
188 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp()
189 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &scalarType), ANEURALNETWORKS_NO_ERROR); in SetUp()
[all …]
DTestValidateModel.cpp30 ASSERT_EQ(ANeuralNetworksModel_create(&model), ANEURALNETWORKS_NO_ERROR); in TEST_F()
36 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_0), ANEURALNETWORKS_NO_ERROR); in TEST_F()
42 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_1), ANEURALNETWORKS_NO_ERROR); in TEST_F()
50 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_2), ANEURALNETWORKS_NO_ERROR); in TEST_F()
58 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_3), ANEURALNETWORKS_NO_ERROR); in TEST_F()
66 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_4), ANEURALNETWORKS_NO_ERROR); in TEST_F()
74 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_5), ANEURALNETWORKS_NO_ERROR); in TEST_F()
82 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_6), ANEURALNETWORKS_NO_ERROR); in TEST_F()
90 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_7), ANEURALNETWORKS_NO_ERROR); in TEST_F()
98 ASSERT_EQ(ANeuralNetworksModel_addOperand(model, &operand_8), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
DTestFree.cpp32 EXPECT_EQ(ANeuralNetworksModel_create(&model), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel()
37 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &type), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel()
38 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &type), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel()
44 ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel()
46 ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel()
53 EXPECT_EQ(ANeuralNetworksModel_finish(model), ANEURALNETWORKS_NO_ERROR); in createFinishedModel()
61 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in createDeviceList()
65 EXPECT_EQ(getDeviceStatus, ANEURALNETWORKS_NO_ERROR); in createDeviceList()
66 if (getDeviceStatus == ANEURALNETWORKS_NO_ERROR) { in createDeviceList()
92 ASSERT_EQ(ANeuralNetworksCompilation_create(model, &compilation), ANEURALNETWORKS_NO_ERROR); in TEST()
[all …]
DTestMemoryDomain.cpp205 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in createCompilation()
209 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in createCompilation()
210 EXPECT_EQ(ANeuralNetworksDevice_getName(device, &name), ANEURALNETWORKS_NO_ERROR); in createCompilation()
232 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory()
235 ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory()
239 ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory()
241 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory()
304 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P()
314 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P()
342 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P()
[all …]
DTestIntrospectionControl.cpp154 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in selectDeviceByName()
159 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in selectDeviceByName()
162 if (result == ANEURALNETWORKS_NO_ERROR && name.compare(buffer) == 0) { in selectDeviceByName()
177 ANEURALNETWORKS_NO_ERROR); in isSupportedOpListExpected()
185 if (result != ANEURALNETWORKS_NO_ERROR) { in prepareForExecution()
188 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
190 ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
195 ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
197 return ANEURALNETWORKS_NO_ERROR; in prepareForExecution()
242 EXPECT_EQ(prepareForExecution(), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
DTestGenerated.cpp158 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
160 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
161 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
163 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
171 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
173 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
174 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
176 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
208 ANEURALNETWORKS_NO_ERROR); in createRequestWithDeviceMemories()
239 ANEURALNETWORKS_NO_ERROR); in copyResultsFromDeviceMemories()
DTestNeuralNetworksWrapper.h62 ANEURALNETWORKS_NO_ERROR; in Memory()
68 ANEURALNETWORKS_NO_ERROR; in Memory()
153 ANEURALNETWORKS_NO_ERROR) { in addOperand()
159 ANEURALNETWORKS_NO_ERROR) { in addOperand()
185 ANEURALNETWORKS_NO_ERROR) { in setOperandValue()
199 length) != ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromMemory()
206 ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromModel()
215 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in addOperation()
224 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in identifyInputsAndOutputs()
231 ANEURALNETWORKS_NO_ERROR) { in relaxComputationFloat32toFloat16()
DTestUpdatability.cpp41 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in TEST_F()
46 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in TEST_F()
48 ANEURALNETWORKS_NO_ERROR); in TEST_F()
DSupportLibraryTestGenerated.cpp137 ANEURALNETWORKS_NO_ERROR); in checkSupported()
197 ANEURALNETWORKS_NO_ERROR); in compileModel()
261 EXPECT_EQ(mNnApi->getFL5()->ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
264 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
265 EXPECT_EQ(mNnApi->getFL5()->ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
275 EXPECT_EQ(mNnApi->getFL5()->ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
278 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
279 EXPECT_EQ(mNnApi->getFL5()->ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
318 ANEURALNETWORKS_NO_ERROR); in computeWithDeviceMemories()
345 ANEURALNETWORKS_NO_ERROR); in computeWithDeviceMemories()
DTestTrivialModel.cpp180 ANEURALNETWORKS_NO_ERROR); in testAddTwoWithHardwareBufferInput()
185 ANEURALNETWORKS_NO_ERROR); in testAddTwoWithHardwareBufferInput()
186 ASSERT_EQ(ANeuralNetworksEvent_wait(eventToSignal), ANEURALNETWORKS_NO_ERROR); in testAddTwoWithHardwareBufferInput()
252 ANEURALNETWORKS_NO_ERROR); in TEST_F()
263 ANEURALNETWORKS_NO_ERROR); in TEST_F()
265 ASSERT_EQ(ANeuralNetworksEvent_wait(event2), ANEURALNETWORKS_NO_ERROR); in TEST_F()
DTestExtensions.cpp96 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in getDeviceByName()
100 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in getDeviceByName()
102 EXPECT_EQ(ANeuralNetworksDevice_getName(device, &buffer), ANEURALNETWORKS_NO_ERROR); in getDeviceByName()
114 ANEURALNETWORKS_NO_ERROR); in testDriverSupportsExtension()
DTestStatsdTelemetry.cpp39 .errorCode = ANEURALNETWORKS_NO_ERROR,
268 for (int32_t error = ANEURALNETWORKS_NO_ERROR; error <= ANEURALNETWORKS_DEAD_OBJECT; in TEST()
280 const uint32_t targetCount = ANEURALNETWORKS_DEAD_OBJECT - ANEURALNETWORKS_NO_ERROR + 1; in TEST()
292 for (int32_t error = ANEURALNETWORKS_NO_ERROR; error <= ANEURALNETWORKS_DEAD_OBJECT; in TEST()
308 .errorCode = ANEURALNETWORKS_NO_ERROR, in TEST()
388 .errorCode = ANEURALNETWORKS_NO_ERROR, in TEST()
DTestOperandExtraParams.cpp35 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp()
120 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in testAddingWithSymmPerChannelQuantParams()
124 expectExtraParamsSuccess ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_BAD_DATA); in testAddingWithSymmPerChannelQuantParams()
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp59 ASSERT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in SetUp()
62 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in SetUp()
68 ANEURALNETWORKS_NO_ERROR); in SetUp()
100 ANEURALNETWORKS_NO_ERROR); in checkSupportedOperations()
114 ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
115 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
117 ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
195 ANEURALNETWORKS_NO_ERROR); in TEST_F()
199 ANEURALNETWORKS_NO_ERROR); in TEST_F()
201 ASSERT_EQ(ANeuralNetworksExecution_compute(mExecution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
/packages/modules/NeuralNetworks/runtime/
DCompilationBuilder.cpp75 case ANEURALNETWORKS_NO_ERROR: in finish()
107 return mPlan.finish(mPreference, mPriority, deadline, mMetadata, ANEURALNETWORKS_NO_ERROR); in finish()
122 return ANEURALNETWORKS_NO_ERROR; in setPreference()
139 return ANEURALNETWORKS_NO_ERROR; in setCaching()
186 return ANEURALNETWORKS_NO_ERROR; in setCachingFromFds()
202 return ANEURALNETWORKS_NO_ERROR; in setPriority()
222 return ANEURALNETWORKS_NO_ERROR; in setTimeoutDuration()
253 return ANEURALNETWORKS_NO_ERROR; in addExtensionAttribute()
264 return ANEURALNETWORKS_NO_ERROR; in forTest_setPartitioning()
275 return ANEURALNETWORKS_NO_ERROR; in forTest_failPartitioning()
[all …]
DExecutionBuilder.cpp125 ANEURALNETWORKS_NO_ERROR) { in checkDimensionInfo()
354 return ANEURALNETWORKS_NO_ERROR; in setMeasureTiming()
414 return ANEURALNETWORKS_NO_ERROR; in getDuration()
433 return ANEURALNETWORKS_NO_ERROR; in setTimeoutDuration()
458 return ANEURALNETWORKS_NO_ERROR; in setLoopTimeout()
473 return ANEURALNETWORKS_NO_ERROR; in enableInputAndOutputPadding()
483 return ANEURALNETWORKS_NO_ERROR; in setReusable()
515 return ANEURALNETWORKS_NO_ERROR; in addExtensionAttribute()
543 return mOutputs[index].isSufficient() ? ANEURALNETWORKS_NO_ERROR in getOutputOperandDimensions()
565 return mOutputs[index].isSufficient() ? ANEURALNETWORKS_NO_ERROR in getOutputOperandRank()
[all …]
DMemory.cpp236 return ANEURALNETWORKS_NO_ERROR; in copyHidlMemories()
245 return ANEURALNETWORKS_NO_ERROR; in copyIBufferToMemory()
255 return ANEURALNETWORKS_NO_ERROR; in copyMemoryToIBuffer()
270 return ANEURALNETWORKS_NO_ERROR; in copyIBuffers()
274 if (&src == &dst) return ANEURALNETWORKS_NO_ERROR; in copyInternal()
305 dst.getValidator().setInitialized(n == ANEURALNETWORKS_NO_ERROR); in copy()
334 if (compilation.forEachStepRoleOfInput(index, callback) != ANEURALNETWORKS_NO_ERROR) { in addRole()
338 if (compilation.forEachStepRoleOfOutput(index, callback) != ANEURALNETWORKS_NO_ERROR) { in addRole()
395 return ANEURALNETWORKS_NO_ERROR; in addRole()
412 return ANEURALNETWORKS_NO_ERROR; in setDimensions()
[all …]
DNeuralNetworks.cpp226 static_assert(ANEURALNETWORKS_NO_ERROR == 0, "ANEURALNETWORKS_NO_ERROR has changed");
668 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworks_getDeviceCount()
682 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworks_getDevice()
692 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getName()
702 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getVersion()
716 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getType()
731 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getFeatureLevel()
789 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksModel_getSupportedOperationsForDevices()
950 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksMemoryDesc_create()
1020 if (n != ANEURALNETWORKS_NO_ERROR) { in ANeuralNetworksMemory_createFromDesc()
[all …]
DModelBuilder.cpp74 ? ANEURALNETWORKS_NO_ERROR in getExtensionType()
125 return ANEURALNETWORKS_NO_ERROR; in addOperand()
189 return ANEURALNETWORKS_NO_ERROR; in setOperandValue()
219 return ANEURALNETWORKS_NO_ERROR; in setOperandValueFromModel()
257 return ANEURALNETWORKS_NO_ERROR; in setOperandSymmPerChannelQuantParams()
287 return ANEURALNETWORKS_NO_ERROR; in setOperandExtensionData()
321 return ANEURALNETWORKS_NO_ERROR; in copyLargeValuesToSharedMemory()
359 return ANEURALNETWORKS_NO_ERROR; in setOperandValueFromMemory()
427 return ANEURALNETWORKS_NO_ERROR; in addOperation()
485 return ANEURALNETWORKS_NO_ERROR; in identifyInputsAndOutputs()
[all …]
DExecutionPlan.cpp162 return ANEURALNETWORKS_NO_ERROR; in copyOperandExtraParams()
381 return ANEURALNETWORKS_NO_ERROR; in allocate()
405 if (n != ANEURALNETWORKS_NO_ERROR) { in allocate()
414 return ANEURALNETWORKS_NO_ERROR; in allocate()
462 return ANEURALNETWORKS_NO_ERROR; in addOperand()
481 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand()
487 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand()
549 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand()
576 return ANEURALNETWORKS_NO_ERROR; in addOperation()
955 if (n == ANEURALNETWORKS_NO_ERROR) { in finish()
[all …]
DManager.cpp150 return ANEURALNETWORKS_NO_ERROR; in wait()
492 return {ANEURALNETWORKS_NO_ERROR, in prepareModel()
531 return {ANEURALNETWORKS_NO_ERROR, in prepareModel()
615 n = ANEURALNETWORKS_NO_ERROR; in execute()
630 return {ANEURALNETWORKS_NO_ERROR, std::move(outputShapes), timing}; in execute()
706 return {ANEURALNETWORKS_NO_ERROR, syncFenceFd, executeFencedInfoCallback, timing}; in executeFenced()
728 return {ANEURALNETWORKS_NO_ERROR, std::move(execution)}; in createReusableExecution()
784 return {ANEURALNETWORKS_NO_ERROR, std::move(outputShapes), timing}; in compute()
848 return {ANEURALNETWORKS_NO_ERROR, syncFenceFd, executeFencedInfoCallback, timing}; in computeFenced()
890 int wait() const override { return ANEURALNETWORKS_NO_ERROR; } in wait()
[all …]
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h59 size, protect, fd, offset, &mMemory) == ANEURALNETWORKS_NO_ERROR;
66 buffer, &mMemory) == ANEURALNETWORKS_NO_ERROR; in Memory()
73 ANEURALNETWORKS_NO_ERROR; in Memory()
143 mValid = mNnApi->getFL5()->ANeuralNetworksModel_create(&mModel) == ANEURALNETWORKS_NO_ERROR; in Model()
200 ANEURALNETWORKS_NO_ERROR) { in addOperand()
209 ANEURALNETWORKS_NO_ERROR) { in addOperand()
236 ANEURALNETWORKS_NO_ERROR) { in setOperandValue()
250 mModel, index, memory->get(), offset, length) != ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromMemory()
257 mModel, index, value->mModel) != ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromModel()
264 ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromModel()
[all …]
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapperExtensions.h100 &result) != ANEURALNETWORKS_NO_ERROR) { in getExtensionOperandType()
111 &result) != ANEURALNETWORKS_NO_ERROR) { in getExtensionOperationType()
119 ANEURALNETWORKS_NO_ERROR) { in addOperand()
125 mModel, mNextOperandId, &channelQuant.params) != ANEURALNETWORKS_NO_ERROR) { in addOperand()
132 ANEURALNETWORKS_NO_ERROR) { in addOperand()
DNeuralNetworksWrapper.h81 NO_ERROR = ANEURALNETWORKS_NO_ERROR,
197 size, protect, fd, offset, &mMemory)) == ANEURALNETWORKS_NO_ERROR;
207 ANEURALNETWORKS_NO_ERROR;
306 ANEURALNETWORKS_NO_ERROR) {
312 ANEURALNETWORKS_NO_ERROR) {
321 ANEURALNETWORKS_NO_ERROR) {
329 mModel, index, memory->get(), offset, length)) != ANEURALNETWORKS_NO_ERROR) {
337 mModel, index, model->getHandle())) != ANEURALNETWORKS_NO_ERROR) {
350 ANEURALNETWORKS_NO_ERROR) {
359 ANEURALNETWORKS_NO_ERROR) {
[all …]
/packages/modules/NeuralNetworks/extensions/
DREADME.md109 ANEURALNETWORKS_NO_ERROR);
122 ANEURALNETWORKS_NO_ERROR);
128 CHECK_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR);
141 ANEURALNETWORKS_NO_ERROR);
152 ANEURALNETWORKS_NO_ERROR);
154 ANEURALNETWORKS_NO_ERROR);

12