Home
last modified time | relevance | path

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

12

/packages/modules/NeuralNetworks/runtime/test/
DTestValidation.cpp58 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp()
68 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand()
73 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand()
110 ASSERT_EQ(addOperation(ANEURALNETWORKS_ADD, inList, outList), ANEURALNETWORKS_NO_ERROR); in createModel()
111 ASSERT_EQ(identifyInputsAndOutputs(inList, outList), ANEURALNETWORKS_NO_ERROR); in createModel()
112 ASSERT_EQ(modelFinish(), ANEURALNETWORKS_NO_ERROR); in createModel()
164 ANEURALNETWORKS_NO_ERROR); in getExtensionOperandType()
180 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp()
181 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp()
182 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.cpp198 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in createCompilation()
202 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in createCompilation()
203 EXPECT_EQ(ANeuralNetworksDevice_getName(device, &name), ANEURALNETWORKS_NO_ERROR); in createCompilation()
225 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory()
228 ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory()
232 ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory()
234 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory()
301 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P()
311 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P()
339 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P()
[all …]
DTestIntrospectionControl.cpp153 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in selectDeviceByName()
158 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in selectDeviceByName()
161 if (result == ANEURALNETWORKS_NO_ERROR && name.compare(buffer) == 0) { in selectDeviceByName()
176 ANEURALNETWORKS_NO_ERROR); in isSupportedOpListExpected()
184 if (result != ANEURALNETWORKS_NO_ERROR) { in prepareForExecution()
187 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
189 ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
194 ANEURALNETWORKS_NO_ERROR); in prepareForExecution()
196 return ANEURALNETWORKS_NO_ERROR; in prepareForExecution()
241 EXPECT_EQ(prepareForExecution(), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
DTestGenerated.cpp155 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
157 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
158 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
160 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
168 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
170 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
171 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
173 EXPECT_EQ(ANeuralNetworksMemory_createFromDesc(desc, &memory), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
205 ANEURALNETWORKS_NO_ERROR); in createRequestWithDeviceMemories()
236 ANEURALNETWORKS_NO_ERROR); in copyResultsFromDeviceMemories()
DTestNeuralNetworksWrapper.h62 ANEURALNETWORKS_NO_ERROR; in Memory()
67 ANEURALNETWORKS_NO_ERROR; in Memory()
151 ANEURALNETWORKS_NO_ERROR) { in addOperand()
157 ANEURALNETWORKS_NO_ERROR) { in addOperand()
183 ANEURALNETWORKS_NO_ERROR) { in setOperandValue()
197 length) != ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromMemory()
204 ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromModel()
213 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in addOperation()
222 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in identifyInputsAndOutputs()
229 ANEURALNETWORKS_NO_ERROR) { in relaxComputationFloat32toFloat16()
DSupportLibraryTestGenerated.cpp133 ANEURALNETWORKS_NO_ERROR); in checkSupported()
193 ANEURALNETWORKS_NO_ERROR); in compileModel()
257 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
260 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
261 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
271 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
274 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
275 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput()
314 ANEURALNETWORKS_NO_ERROR); in computeWithDeviceMemories()
340 ANEURALNETWORKS_NO_ERROR); in computeWithDeviceMemories()
DTestUpdatability.cpp35 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in TEST_F()
40 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in TEST_F()
42 ANEURALNETWORKS_NO_ERROR); in TEST_F()
DTestTrivialModel.cpp176 ANEURALNETWORKS_NO_ERROR); in testAddTwoWithHardwareBufferInput()
181 ANEURALNETWORKS_NO_ERROR); in testAddTwoWithHardwareBufferInput()
182 ASSERT_EQ(ANeuralNetworksEvent_wait(eventToSignal), ANEURALNETWORKS_NO_ERROR); in testAddTwoWithHardwareBufferInput()
248 ANEURALNETWORKS_NO_ERROR); in TEST_F()
259 ANEURALNETWORKS_NO_ERROR); in TEST_F()
261 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()
DTestCompilationCaching.cpp297 ASSERT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in getDeviceWithName()
303 ASSERT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in getDeviceWithName()
306 ASSERT_EQ(ANeuralNetworksDevice_getName(device, &buffer), ANEURALNETWORKS_NO_ERROR); in getDeviceWithName()
390 ANEURALNETWORKS_NO_ERROR); in compileModel()
394 ANEURALNETWORKS_NO_ERROR); in compileModel()
396 ASSERT_EQ(ANeuralNetworksCompilation_finish(compilation), ANEURALNETWORKS_NO_ERROR); in compileModel()
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.cpp70 case ANEURALNETWORKS_NO_ERROR: in finish()
101 return mPlan.finish(mPreference, mPriority, deadline, ANEURALNETWORKS_NO_ERROR); in finish()
116 return ANEURALNETWORKS_NO_ERROR; in setPreference()
133 return ANEURALNETWORKS_NO_ERROR; in setCaching()
184 return ANEURALNETWORKS_NO_ERROR; in setCachingFromFds()
200 return ANEURALNETWORKS_NO_ERROR; in setPriority()
220 return ANEURALNETWORKS_NO_ERROR; in setTimeoutDuration()
231 return ANEURALNETWORKS_NO_ERROR; in forTest_setPartitioning()
242 return ANEURALNETWORKS_NO_ERROR; in forTest_failPartitioning()
265 return ANEURALNETWORKS_NO_ERROR; in getPreferredMemoryAlignmentForInput()
[all …]
DExecutionBuilder.cpp124 ANEURALNETWORKS_NO_ERROR) { in checkDimensionInfo()
353 return ANEURALNETWORKS_NO_ERROR; in setMeasureTiming()
413 return ANEURALNETWORKS_NO_ERROR; in getDuration()
432 return ANEURALNETWORKS_NO_ERROR; in setTimeoutDuration()
451 return ANEURALNETWORKS_NO_ERROR; in setLoopTimeout()
466 return ANEURALNETWORKS_NO_ERROR; in enableInputAndOutputPadding()
476 return ANEURALNETWORKS_NO_ERROR; in setReusable()
504 return mOutputs[index].isSufficient() ? ANEURALNETWORKS_NO_ERROR in getOutputOperandDimensions()
526 return mOutputs[index].isSufficient() ? ANEURALNETWORKS_NO_ERROR in getOutputOperandRank()
562 return ANEURALNETWORKS_NO_ERROR; in validateRequest()
[all …]
DMemory.cpp232 return ANEURALNETWORKS_NO_ERROR; in copyHidlMemories()
241 return ANEURALNETWORKS_NO_ERROR; in copyIBufferToMemory()
251 return ANEURALNETWORKS_NO_ERROR; in copyMemoryToIBuffer()
262 return ANEURALNETWORKS_NO_ERROR; in copyIBuffers()
266 if (&src == &dst) return ANEURALNETWORKS_NO_ERROR; in copyInternal()
297 dst.getValidator().setInitialized(n == ANEURALNETWORKS_NO_ERROR); in copy()
326 if (compilation.forEachStepRoleOfInput(index, callback) != ANEURALNETWORKS_NO_ERROR) { in addRole()
330 if (compilation.forEachStepRoleOfOutput(index, callback) != ANEURALNETWORKS_NO_ERROR) { in addRole()
387 return ANEURALNETWORKS_NO_ERROR; in addRole()
404 return ANEURALNETWORKS_NO_ERROR; in setDimensions()
[all …]
DNeuralNetworks.cpp223 static_assert(ANEURALNETWORKS_NO_ERROR == 0, "ANEURALNETWORKS_NO_ERROR has changed");
651 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworks_getDeviceCount()
665 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworks_getDevice()
675 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getName()
685 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getVersion()
699 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getType()
714 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getFeatureLevel()
772 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksModel_getSupportedOperationsForDevices()
933 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksMemoryDesc_create()
1003 if (n != ANEURALNETWORKS_NO_ERROR) { in ANeuralNetworksMemory_createFromDesc()
[all …]
DModelBuilder.cpp70 ? ANEURALNETWORKS_NO_ERROR in getExtensionType()
120 return ANEURALNETWORKS_NO_ERROR; in addOperand()
184 return ANEURALNETWORKS_NO_ERROR; in setOperandValue()
214 return ANEURALNETWORKS_NO_ERROR; in setOperandValueFromModel()
252 return ANEURALNETWORKS_NO_ERROR; in setOperandSymmPerChannelQuantParams()
282 return ANEURALNETWORKS_NO_ERROR; in setOperandExtensionData()
315 return ANEURALNETWORKS_NO_ERROR; in copyLargeValuesToSharedMemory()
353 return ANEURALNETWORKS_NO_ERROR; in setOperandValueFromMemory()
410 return ANEURALNETWORKS_NO_ERROR; in addOperation()
468 return ANEURALNETWORKS_NO_ERROR; in identifyInputsAndOutputs()
[all …]
DManager.cpp110 return ANEURALNETWORKS_NO_ERROR; in wait()
440 return {ANEURALNETWORKS_NO_ERROR, in prepareModel()
478 return {ANEURALNETWORKS_NO_ERROR, in prepareModel()
560 n = ANEURALNETWORKS_NO_ERROR; in execute()
575 return {ANEURALNETWORKS_NO_ERROR, std::move(outputShapes), timing}; in execute()
646 return {ANEURALNETWORKS_NO_ERROR, syncFenceFd, executeFencedInfoCallback, timing}; in executeFenced()
665 return {ANEURALNETWORKS_NO_ERROR, std::move(execution)}; in createReusableExecution()
720 return {ANEURALNETWORKS_NO_ERROR, std::move(outputShapes), timing}; in compute()
784 return {ANEURALNETWORKS_NO_ERROR, syncFenceFd, executeFencedInfoCallback, timing}; in computeFenced()
861 int wait() const override { return ANEURALNETWORKS_NO_ERROR; } in wait()
[all …]
DExecutionPlan.cpp122 return ANEURALNETWORKS_NO_ERROR; in copyOperandExtraParams()
341 return ANEURALNETWORKS_NO_ERROR; in allocate()
365 if (n != ANEURALNETWORKS_NO_ERROR) { in allocate()
374 return ANEURALNETWORKS_NO_ERROR; in allocate()
422 return ANEURALNETWORKS_NO_ERROR; in addOperand()
441 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand()
447 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand()
509 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand()
536 return ANEURALNETWORKS_NO_ERROR; in addOperation()
911 if (n == ANEURALNETWORKS_NO_ERROR) { in finish()
[all …]
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h59 ANEURALNETWORKS_NO_ERROR;
66 ANEURALNETWORKS_NO_ERROR; in Memory()
73 ANEURALNETWORKS_NO_ERROR; in Memory()
142 mValid = mNnApi->ANeuralNetworksModel_create(&mModel) == ANEURALNETWORKS_NO_ERROR; in Model()
198 ANEURALNETWORKS_NO_ERROR) { in addOperand()
207 ANEURALNETWORKS_NO_ERROR) { in addOperand()
234 ANEURALNETWORKS_NO_ERROR) { in setOperandValue()
248 mModel, index, memory->get(), offset, length) != ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromMemory()
255 ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromModel()
262 ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromModel()
[all …]
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h81 NO_ERROR = ANEURALNETWORKS_NO_ERROR,
197 size, protect, fd, offset, &mMemory)) == ANEURALNETWORKS_NO_ERROR;
206 ANEURALNETWORKS_NO_ERROR;
304 ANEURALNETWORKS_NO_ERROR) {
310 ANEURALNETWORKS_NO_ERROR) {
319 ANEURALNETWORKS_NO_ERROR) {
327 mModel, index, memory->get(), offset, length)) != ANEURALNETWORKS_NO_ERROR) {
337 ANEURALNETWORKS_NO_ERROR) {
346 ANEURALNETWORKS_NO_ERROR) {
353 ANEURALNETWORKS_NO_ERROR) {
[all …]
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()
/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