/frameworks/ml/nn/runtime/test/ |
D | TestValidation.cpp | 54 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp() 64 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand() 69 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand() 106 ASSERT_EQ(addOperation(ANEURALNETWORKS_ADD, inList, outList), ANEURALNETWORKS_NO_ERROR); in createModel() 107 ASSERT_EQ(identifyInputsAndOutputs(inList, outList), ANEURALNETWORKS_NO_ERROR); in createModel() 108 ASSERT_EQ(modelFinish(), ANEURALNETWORKS_NO_ERROR); in createModel() 160 ANEURALNETWORKS_NO_ERROR); in getExtensionOperandType() 176 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp() 177 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp() 178 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &scalarType), ANEURALNETWORKS_NO_ERROR); in SetUp() [all …]
|
D | TestValidateModel.cpp | 30 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 …]
|
D | TestFree.cpp | 32 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 …]
|
D | TestMemoryDomain.cpp | 192 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in createCompilation() 196 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in createCompilation() 197 EXPECT_EQ(ANeuralNetworksDevice_getName(device, &name), ANEURALNETWORKS_NO_ERROR); in createCompilation() 219 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory() 222 ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory() 226 ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory() 228 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in allocateDeviceMemory() 290 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P() 300 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P() 328 ASSERT_EQ(n, ANEURALNETWORKS_NO_ERROR); in TEST_P() [all …]
|
D | TestIntrospectionControl.cpp | 148 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in selectDeviceByName() 153 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in selectDeviceByName() 156 if (result == ANEURALNETWORKS_NO_ERROR && name.compare(buffer) == 0) { in selectDeviceByName() 171 ANEURALNETWORKS_NO_ERROR); in isSupportedOpListExpected() 179 if (result != ANEURALNETWORKS_NO_ERROR) { in prepareForExecution() 182 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 184 ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 189 ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 191 return ANEURALNETWORKS_NO_ERROR; in prepareForExecution() 236 EXPECT_EQ(prepareForExecution(), ANEURALNETWORKS_NO_ERROR); in TEST_F() [all …]
|
D | TestNeuralNetworksWrapper.h | 58 ANEURALNETWORKS_NO_ERROR; in Memory() 63 ANEURALNETWORKS_NO_ERROR; in Memory() 147 ANEURALNETWORKS_NO_ERROR) { in addOperand() 153 ANEURALNETWORKS_NO_ERROR) { in addOperand() 179 ANEURALNETWORKS_NO_ERROR) { in setOperandValue() 193 length) != ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromMemory() 200 ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromModel() 209 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in addOperation() 218 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in identifyInputsAndOutputs() 225 ANEURALNETWORKS_NO_ERROR) { in relaxComputationFloat32toFloat16()
|
D | TestGenerated.cpp | 153 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput() 155 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput() 156 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput() 166 EXPECT_EQ(ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput() 168 ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput() 169 EXPECT_EQ(ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForOutput() 207 ANEURALNETWORKS_NO_ERROR); in computeWithDeviceMemories() 233 ANEURALNETWORKS_NO_ERROR); in computeWithDeviceMemories()
|
D | TestExtensions.cpp | 90 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in getDeviceByName() 94 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in getDeviceByName() 96 EXPECT_EQ(ANeuralNetworksDevice_getName(device, &buffer), ANEURALNETWORKS_NO_ERROR); in getDeviceByName() 108 ANEURALNETWORKS_NO_ERROR); in testDriverSupportsExtension()
|
D | TestTrivialModel.cpp | 164 ANEURALNETWORKS_NO_ERROR); in TEST_F() 169 ANEURALNETWORKS_NO_ERROR); in TEST_F() 170 ASSERT_EQ(ANeuralNetworksEvent_wait(eventToSignal), ANEURALNETWORKS_NO_ERROR); in TEST_F() 228 ANEURALNETWORKS_NO_ERROR); in TEST_F() 239 ANEURALNETWORKS_NO_ERROR); in TEST_F() 241 ASSERT_EQ(ANeuralNetworksEvent_wait(event2), ANEURALNETWORKS_NO_ERROR); in TEST_F()
|
D | TestOperandExtraParams.cpp | 34 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp() 119 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in testAddingWithSymmPerChannelQuantParams() 123 expectExtraParamsSuccess ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_BAD_DATA); in testAddingWithSymmPerChannelQuantParams()
|
D | TestCompilationCaching.cpp | 287 ASSERT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in getDeviceWithName() 293 ASSERT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in getDeviceWithName() 296 ASSERT_EQ(ANeuralNetworksDevice_getName(device, &buffer), ANEURALNETWORKS_NO_ERROR); in getDeviceWithName() 380 ANEURALNETWORKS_NO_ERROR); in compileModel() 384 ANEURALNETWORKS_NO_ERROR); in compileModel() 386 ASSERT_EQ(ANeuralNetworksCompilation_finish(compilation), ANEURALNETWORKS_NO_ERROR); in compileModel()
|
D | TestRemoveDefaultArguments.cpp | 174 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in getDeviceByName() 178 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in getDeviceByName() 180 EXPECT_EQ(ANeuralNetworksDevice_getName(device, &buffer), ANEURALNETWORKS_NO_ERROR); in getDeviceByName()
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 59 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 …]
|
/frameworks/ml/nn/runtime/ |
D | CompilationBuilder.cpp | 68 case ANEURALNETWORKS_NO_ERROR: in finish() 114 return ANEURALNETWORKS_NO_ERROR; in setPreference() 130 return ANEURALNETWORKS_NO_ERROR; in setCaching() 146 return ANEURALNETWORKS_NO_ERROR; in setPriority() 166 return ANEURALNETWORKS_NO_ERROR; in setTimeoutDuration() 177 return ANEURALNETWORKS_NO_ERROR; in setPartitioning() 192 return (*execution ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_OUT_OF_MEMORY); in createExecution() 209 return (*burst ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_OUT_OF_MEMORY); in createBurst() 228 return ANEURALNETWORKS_NO_ERROR; in forEachStepRoleOfInput() 247 return ANEURALNETWORKS_NO_ERROR; in forEachStepRoleOfOutput()
|
D | Memory.cpp | 246 return ANEURALNETWORKS_NO_ERROR; in copyHidlMemories() 276 return ANEURALNETWORKS_NO_ERROR; in copyIBuffers() 280 if (&src == &dst) return ANEURALNETWORKS_NO_ERROR; in copyInternal() 312 dst.getValidator().setInitialized(n == ANEURALNETWORKS_NO_ERROR); in copy() 341 if (compilation.forEachStepRoleOfInput(index, callback) != ANEURALNETWORKS_NO_ERROR) { in addRole() 345 if (compilation.forEachStepRoleOfOutput(index, callback) != ANEURALNETWORKS_NO_ERROR) { in addRole() 402 return ANEURALNETWORKS_NO_ERROR; in addRole() 419 return ANEURALNETWORKS_NO_ERROR; in setDimensions() 484 return ANEURALNETWORKS_NO_ERROR; in finish() 503 if (n != ANEURALNETWORKS_NO_ERROR && mShouldFallback) { in allocate() [all …]
|
D | ExecutionBuilder.cpp | 63 ANEURALNETWORKS_NO_ERROR) { in checkDimensionInfo() 296 return ANEURALNETWORKS_NO_ERROR; in setMeasureTiming() 361 return ANEURALNETWORKS_NO_ERROR; in getDuration() 380 return ANEURALNETWORKS_NO_ERROR; in setTimeoutDuration() 399 return ANEURALNETWORKS_NO_ERROR; in setLoopTimeout() 427 return mOutputs[index].isSufficient() ? ANEURALNETWORKS_NO_ERROR in getOutputOperandDimensions() 449 return mOutputs[index].isSufficient() ? ANEURALNETWORKS_NO_ERROR in getOutputOperandRank() 487 if (n1 != ANEURALNETWORKS_NO_ERROR) { in cpuFallbackPartial() 518 if (n != ANEURALNETWORKS_NO_ERROR) { in asyncStartComputePartitioned() 545 if (stepN == ANEURALNETWORKS_NO_ERROR) { in asyncStartComputePartitioned() [all …]
|
D | NeuralNetworks.cpp | 219 static_assert(ANEURALNETWORKS_NO_ERROR == 0, "ANEURALNETWORKS_NO_ERROR has changed"); 626 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworks_getDeviceCount() 640 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworks_getDevice() 650 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getName() 660 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getVersion() 674 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getType() 689 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getFeatureLevel() 747 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksModel_getSupportedOperationsForDevices() 908 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksMemoryDesc_create() 978 if (n != ANEURALNETWORKS_NO_ERROR) { in ANeuralNetworksMemory_createFromDesc() [all …]
|
D | ModelBuilder.cpp | 59 ? ANEURALNETWORKS_NO_ERROR in getExtensionType() 104 return ANEURALNETWORKS_NO_ERROR; in addOperand() 172 return ANEURALNETWORKS_NO_ERROR; in setOperandValue() 201 return ANEURALNETWORKS_NO_ERROR; in setOperandValueFromModel() 236 return ANEURALNETWORKS_NO_ERROR; in setOperandSymmPerChannelQuantParams() 275 return ANEURALNETWORKS_NO_ERROR; in setOperandExtensionData() 308 return ANEURALNETWORKS_NO_ERROR; in copyLargeValuesToSharedMemory() 346 return ANEURALNETWORKS_NO_ERROR; in setOperandValueFromMemory() 417 return ANEURALNETWORKS_NO_ERROR; in addOperation() 428 if (n != ANEURALNETWORKS_NO_ERROR) { in identifyInputsAndOutputs() [all …]
|
D | Manager.cpp | 249 if (n != ANEURALNETWORKS_NO_ERROR) { in prepareModel() 253 return {ANEURALNETWORKS_NO_ERROR, std::make_shared<DriverPreparedModel>(this, preparedModel)}; in prepareModel() 303 return {ANEURALNETWORKS_NO_ERROR, nullptr, std::vector<DataLocation>{}}; in allocatePointerArgumentsToPool() 306 if (n != ANEURALNETWORKS_NO_ERROR) { in allocatePointerArgumentsToPool() 310 return {ANEURALNETWORKS_NO_ERROR, std::move(memory), std::move(ptrArgsLocations)}; in allocatePointerArgumentsToPool() 340 if (n1 != ANEURALNETWORKS_NO_ERROR) { in execute() 345 if (n2 != ANEURALNETWORKS_NO_ERROR) { in execute() 407 if (n != ANEURALNETWORKS_NO_ERROR) { in execute() 426 return {ANEURALNETWORKS_NO_ERROR, std::move(outputShapes), timing}; in execute() 450 if (n1 != ANEURALNETWORKS_NO_ERROR) { in executeFenced() [all …]
|
D | ModelArgumentInfo.cpp | 68 return {ANEURALNETWORKS_NO_ERROR, ret}; in createFromPointer() 92 return {ANEURALNETWORKS_NO_ERROR, ret}; in createFromMemory() 104 return ANEURALNETWORKS_NO_ERROR; in updateDimensionInfo()
|
D | ExecutionPlan.cpp | 125 return ANEURALNETWORKS_NO_ERROR; in copyOperandExtraParams() 203 return ANEURALNETWORKS_NO_ERROR; in addOperand() 222 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 228 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 238 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 247 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 254 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 291 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 301 return ANEURALNETWORKS_NO_ERROR; in addOperand() 325 return ANEURALNETWORKS_NO_ERROR; in addOperation() [all …]
|
/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworksWrapperExtensions.h | 98 &result) != ANEURALNETWORKS_NO_ERROR) { in getExtensionOperandType() 109 &result) != ANEURALNETWORKS_NO_ERROR) { in getExtensionOperationType() 117 ANEURALNETWORKS_NO_ERROR) { in addOperand() 123 mModel, mNextOperandId, &channelQuant.params) != ANEURALNETWORKS_NO_ERROR) { in addOperand() 130 ANEURALNETWORKS_NO_ERROR) { in addOperand()
|
D | NeuralNetworksWrapper.h | 68 NO_ERROR = ANEURALNETWORKS_NO_ERROR, 161 ANEURALNETWORKS_NO_ERROR; in Memory() 166 ANEURALNETWORKS_NO_ERROR; in Memory() 245 ANEURALNETWORKS_NO_ERROR) { in addOperand() 251 ANEURALNETWORKS_NO_ERROR) { in addOperand() 260 ANEURALNETWORKS_NO_ERROR) { in setOperandValue() 268 length) != ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromMemory() 277 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in addOperation() 286 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in identifyInputsAndOutputs() 293 ANEURALNETWORKS_NO_ERROR) { in relaxComputationFloat32toFloat16()
|
/frameworks/ml/nn/extensions/ |
D | README.md | 109 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);
|
/frameworks/ml/nn/tools/api/ |
D | NeuralNetworks.t | 179 * currently documented. Any value other than {@link ANEURALNETWORKS_NO_ERROR} 192 ANEURALNETWORKS_NO_ERROR = 0, 760 * @return ANEURALNETWORKS_NO_ERROR if successful. 819 * @return ANEURALNETWORKS_NO_ERROR if successful. 865 * @return ANEURALNETWORKS_NO_ERROR if successful. 892 * @return ANEURALNETWORKS_NO_ERROR if successful. 909 * @return ANEURALNETWORKS_NO_ERROR if successful. 962 * @return ANEURALNETWORKS_NO_ERROR if successful; ANEURALNETWORKS_OP_FAILED if the memory is 1003 * @return ANEURALNETWORKS_NO_ERROR if successful. 1017 * @return ANEURALNETWORKS_NO_ERROR if successful. [all …]
|