/frameworks/ml/nn/runtime/test/ |
D | TestValidation.cpp | 44 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp() 54 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand() 59 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand() 82 ANEURALNETWORKS_NO_ERROR); in createModel() 84 ANEURALNETWORKS_NO_ERROR); in createModel() 85 ASSERT_EQ(ANeuralNetworksModel_finish(mModel), ANEURALNETWORKS_NO_ERROR); in createModel() 138 ANEURALNETWORKS_NO_ERROR); in getExtensionOperandType() 154 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp() 155 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &tensorType), ANEURALNETWORKS_NO_ERROR); in SetUp() 156 ASSERT_EQ(ANeuralNetworksModel_addOperand(mModel, &scalarType), ANEURALNETWORKS_NO_ERROR); in SetUp() [all …]
|
D | TestIntrospectionControl.cpp | 133 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in selectDeviceByName() 138 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in selectDeviceByName() 141 if (result == ANEURALNETWORKS_NO_ERROR && name.compare(buffer) == 0) { in selectDeviceByName() 156 ANEURALNETWORKS_NO_ERROR); in isSupportedOpListExpected() 164 if (result != ANEURALNETWORKS_NO_ERROR) { in prepareForExecution() 167 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 169 ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 174 ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 176 return ANEURALNETWORKS_NO_ERROR; in prepareForExecution() 221 EXPECT_EQ(prepareForExecution(), ANEURALNETWORKS_NO_ERROR); in TEST_F() [all …]
|
D | TestExtensions.cpp | 86 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in getDeviceByName() 90 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in getDeviceByName() 92 EXPECT_EQ(ANeuralNetworksDevice_getName(device, &buffer), ANEURALNETWORKS_NO_ERROR); in getDeviceByName() 104 ANEURALNETWORKS_NO_ERROR); in testDriverSupportsExtension()
|
D | TestOperandExtraParams.cpp | 33 ASSERT_EQ(ANeuralNetworksModel_create(&mModel), ANEURALNETWORKS_NO_ERROR); in SetUp() 111 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in testAddingWithSymmPerChannelQuantParams() 115 expectExtraParamsSuccess ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_BAD_DATA); in testAddingWithSymmPerChannelQuantParams()
|
D | TestCompilationCaching.cpp | 268 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in compileModel() 273 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in compileModel() 276 if (result == ANEURALNETWORKS_NO_ERROR && strcmp(buffer, kDeviceName) == 0) { in compileModel() 287 ANEURALNETWORKS_NO_ERROR); in compileModel() 291 ANEURALNETWORKS_NO_ERROR); in compileModel() 293 ASSERT_EQ(ANeuralNetworksCompilation_finish(compilation), ANEURALNETWORKS_NO_ERROR); in compileModel()
|
D | TestExecution.cpp | 344 EXPECT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in TestIntrospectionCompilation() 349 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in TestIntrospectionCompilation() 352 if (result == ANEURALNETWORKS_NO_ERROR && deviceName.compare(buffer) == 0) { in TestIntrospectionCompilation() 364 EXPECT_EQ(result, ANEURALNETWORKS_NO_ERROR); in TestIntrospectionCompilation()
|
D | TestMemoryInternal.cpp | 203 ASSERT_EQ(internalMem->getPointer(&dummy), ANEURALNETWORKS_NO_ERROR); in TEST_F() 223 ASSERT_EQ(internalMem->getPointer(&dummy), ANEURALNETWORKS_NO_ERROR); in TEST_F()
|
D | TestPartitioning.cpp | 1195 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1206 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1217 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1283 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1295 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1383 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1421 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1563 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1663 ANEURALNETWORKS_NO_ERROR); in TEST_F() 1711 ANEURALNETWORKS_NO_ERROR); in TEST_F() [all …]
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 58 ASSERT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in SetUp() 63 EXPECT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in SetUp() 68 ANEURALNETWORKS_NO_ERROR); in SetUp() 99 ANEURALNETWORKS_NO_ERROR); in checkSupportedOperations() 109 ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 110 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 112 ANEURALNETWORKS_NO_ERROR); in prepareForExecution() 188 ANEURALNETWORKS_NO_ERROR); in TEST_F() 192 ANEURALNETWORKS_NO_ERROR); in TEST_F() 194 ASSERT_EQ(ANeuralNetworksExecution_compute(mExecution), ANEURALNETWORKS_NO_ERROR); in TEST_F() [all …]
|
/frameworks/ml/nn/runtime/ |
D | CompilationBuilder.cpp | 57 case ANEURALNETWORKS_NO_ERROR: in finish() 103 return ANEURALNETWORKS_NO_ERROR; in setPreference() 119 return ANEURALNETWORKS_NO_ERROR; in setCaching() 130 return ANEURALNETWORKS_NO_ERROR; in setPartitioning() 145 return (*execution ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_OUT_OF_MEMORY); in createExecution() 161 return (*burst ? ANEURALNETWORKS_NO_ERROR : ANEURALNETWORKS_OUT_OF_MEMORY); in createBurst()
|
D | ModelBuilder.cpp | 53 ? ANEURALNETWORKS_NO_ERROR in getExtensionType() 95 return ANEURALNETWORKS_NO_ERROR; in addOperand() 163 return ANEURALNETWORKS_NO_ERROR; in setOperandValue() 198 return ANEURALNETWORKS_NO_ERROR; in setOperandSymmPerChannelQuantParams() 237 return ANEURALNETWORKS_NO_ERROR; in setOperandExtensionData() 256 if (n != ANEURALNETWORKS_NO_ERROR) { in copyLargeValuesToSharedMemory() 261 if (n != ANEURALNETWORKS_NO_ERROR) { in copyLargeValuesToSharedMemory() 275 return ANEURALNETWORKS_NO_ERROR; in copyLargeValuesToSharedMemory() 316 return ANEURALNETWORKS_NO_ERROR; in setOperandValueFromMemory() 361 return ANEURALNETWORKS_NO_ERROR; in addOperation() [all …]
|
D | ExecutionBuilder.cpp | 55 ANEURALNETWORKS_NO_ERROR) { in checkDimensionInfo() 107 return ANEURALNETWORKS_NO_ERROR; in setFromPointer() 125 return ANEURALNETWORKS_NO_ERROR; in setFromMemory() 147 return ANEURALNETWORKS_NO_ERROR; in setFromTemporaryMemory() 159 return ANEURALNETWORKS_NO_ERROR; in updateDimensionInfo() 301 return ANEURALNETWORKS_NO_ERROR; in setMeasureTiming() 333 return ANEURALNETWORKS_NO_ERROR; in getDuration() 355 return mOutputs[index].isSufficient ? ANEURALNETWORKS_NO_ERROR in getOutputOperandDimensions() 372 return mOutputs[index].isSufficient ? ANEURALNETWORKS_NO_ERROR in getOutputOperandRank() 391 if (n != ANEURALNETWORKS_NO_ERROR) { in cpuFallbackFull() [all …]
|
D | Memory.cpp | 43 return ANEURALNETWORKS_NO_ERROR; in create() 114 return ANEURALNETWORKS_NO_ERROR; in set() 120 return ANEURALNETWORKS_NO_ERROR; in getPointer() 137 return ANEURALNETWORKS_NO_ERROR; in getPointer()
|
D | ExecutionPlan.cpp | 131 return ret == ANEURALNETWORKS_NO_ERROR; in compileFromCache() 170 return ANEURALNETWORKS_NO_ERROR; in compile() 204 return ANEURALNETWORKS_NO_ERROR; in copyOperandExtraParams() 278 return ANEURALNETWORKS_NO_ERROR; in addOperand() 296 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 302 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 312 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 322 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 329 if (n != ANEURALNETWORKS_NO_ERROR) { in addOperand() 367 return ANEURALNETWORKS_NO_ERROR; in addOperand() [all …]
|
D | NeuralNetworks.cpp | 202 static_assert(ANEURALNETWORKS_NO_ERROR == 0, "ANEURALNETWORKS_NO_ERROR has changed"); 559 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworks_getDeviceCount() 573 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworks_getDevice() 583 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getName() 593 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getVersion() 607 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getType() 622 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksDevice_getFeatureLevel() 672 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksModel_getSupportedOperationsForDevices() 829 if (n != ANEURALNETWORKS_NO_ERROR) { in ANeuralNetworksMemory_createFromFd() 833 return ANEURALNETWORKS_NO_ERROR; in ANeuralNetworksMemory_createFromFd() [all …]
|
D | Memory.h | 60 return ANEURALNETWORKS_NO_ERROR; in getPointer() 137 return ANEURALNETWORKS_NO_ERROR; in set()
|
D | Manager.cpp | 246 return ANEURALNETWORKS_NO_ERROR; in prepareModelCheck() 356 return ANEURALNETWORKS_NO_ERROR; in prepareModel()
|
/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 | 57 NO_ERROR = ANEURALNETWORKS_NO_ERROR, 147 ANEURALNETWORKS_NO_ERROR; in Memory() 152 ANEURALNETWORKS_NO_ERROR; in Memory() 231 ANEURALNETWORKS_NO_ERROR) { in addOperand() 237 ANEURALNETWORKS_NO_ERROR) { in addOperand() 246 ANEURALNETWORKS_NO_ERROR) { in setOperandValue() 254 length) != ANEURALNETWORKS_NO_ERROR) { in setOperandValueFromMemory() 263 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in addOperation() 272 outputs.data()) != ANEURALNETWORKS_NO_ERROR) { in identifyInputsAndOutputs() 279 ANEURALNETWORKS_NO_ERROR) { in relaxComputationFloat32toFloat16()
|
D | NeuralNetworks.h | 4950 ANEURALNETWORKS_NO_ERROR = 0, enumerator
|
/frameworks/ml/nn/extensions/ |
D | README.md | 104 ANEURALNETWORKS_NO_ERROR); 117 ANEURALNETWORKS_NO_ERROR); 123 CHECK_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR); 134 ANEURALNETWORKS_NO_ERROR); 144 ANEURALNETWORKS_NO_ERROR); 146 ANEURALNETWORKS_NO_ERROR);
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | TestRandomGraph.cpp | 128 return ret == ANEURALNETWORKS_NO_ERROR; in initialize() 160 ASSERT_EQ(ANeuralNetworks_getDeviceCount(&numDevices), ANEURALNETWORKS_NO_ERROR); in SetUpTestCase() 165 ASSERT_EQ(ANeuralNetworks_getDevice(i, &device), ANEURALNETWORKS_NO_ERROR); in SetUpTestCase() 166 ASSERT_EQ(ANeuralNetworksDevice_getName(device, &name), ANEURALNETWORKS_NO_ERROR); in SetUpTestCase() 168 ANEURALNETWORKS_NO_ERROR); in SetUpTestCase() 226 ANEURALNETWORKS_NO_ERROR); in computeAndVerifyResultsForDevice() 239 ANEURALNETWORKS_NO_ERROR); in computeAndVerifyResultsForDevice()
|
/frameworks/ml/nn/common/ |
D | UtilsTest.cpp | 87 ANEURALNETWORKS_NO_ERROR); in TEST()
|
D | CpuExecutor.cpp | 79 int result = ANEURALNETWORKS_NO_ERROR; 204 *result = ANEURALNETWORKS_NO_ERROR; in setInfoAndAllocateIfNeeded() 552 if (n != ANEURALNETWORKS_NO_ERROR) { in run() 563 finish(ANEURALNETWORKS_NO_ERROR); in run() 565 return ANEURALNETWORKS_NO_ERROR; in run() 671 int result = ANEURALNETWORKS_NO_ERROR; in executeOperation() 1750 if (!success && result == ANEURALNETWORKS_NO_ERROR) { in executeOperation() 1753 if (result != ANEURALNETWORKS_NO_ERROR) { in executeOperation() 1759 return ANEURALNETWORKS_NO_ERROR; in executeOperation() 1773 if (result == ANEURALNETWORKS_NO_ERROR || result == ANEURALNETWORKS_OUTPUT_INSUFFICIENT_SIZE) { in finish()
|
D | Utils.cpp | 484 ? ANEURALNETWORKS_NO_ERROR in validateOperandType() 497 return ANEURALNETWORKS_NO_ERROR; in validateOperandList() 529 return ANEURALNETWORKS_NO_ERROR; in validateOperationOperandTypes() 540 return ANEURALNETWORKS_NO_ERROR; in validateHalVersion() 562 return ANEURALNETWORKS_NO_ERROR; in validateOperation() 573 return ANEURALNETWORKS_NO_ERROR; in validateOperation() 995 if (status != ANEURALNETWORKS_NO_ERROR) { in validateOperation() 1740 return ANEURALNETWORKS_NO_ERROR; in validateOperation() 1747 case ANEURALNETWORKS_NO_ERROR: in convertResultCodeToErrorStatus() 1776 return ANEURALNETWORKS_NO_ERROR; in convertErrorStatusToResultCode() [all …]
|