/packages/modules/NeuralNetworks/runtime/test/ |
D | TestPartitioningRandom.cpp | 418 const uint32_t operandIndex = model->addOperand(&biasType); in makeRnnSpecialInput() local 421 model->setOperandValue(operandIndex, biasValue); in makeRnnSpecialInput() 422 return int(operandIndex); in makeRnnSpecialInput() 436 const uint32_t operandIndex = model->addOperand(&permType); in makeTransposeSpecialInput() local 438 model->setOperandValue(operandIndex, permValue); in makeTransposeSpecialInput() 439 return int(operandIndex); in makeTransposeSpecialInput() 760 const uint32_t operandIndex = model.addOperand(&activationFunctionType); in TEST_P() local 766 model.setOperandValue(operandIndex, activationFunction); in TEST_P() 767 operationInputs[operationInputIndex] = operandIndex; in TEST_P() 771 const int operandIndex = (this->*(operationPattern.mMakeSpecialInput))( in TEST_P() local [all …]
|
D | TestValidation.cpp | 450 const int32_t operandIndex = addTensorOperand(ANEURALNETWORKS_TENSOR_QUANT8_SYMM_PER_CHANNEL); in TEST_F() local 459 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(nullptr, operandIndex, in TEST_F() 463 ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, nullptr), in TEST_F() 465 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex + 1, in TEST_F() 468 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, in TEST_F() 480 const int32_t operandIndex = in TEST_F() local 490 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, in TEST_F() 496 const int32_t operandIndex = in TEST_F() local 501 ANeuralNetworksModel_setOperandExtensionData(nullptr, operandIndex, &data, dataLength), in TEST_F() 504 ANeuralNetworksModel_setOperandExtensionData(mModel, operandIndex, nullptr, dataLength), in TEST_F() [all …]
|
D | TestOperandExtraParams.cpp | 121 int operandIndex = nextOperandIndex++; in testAddingWithSymmPerChannelQuantParams() local 122 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, in testAddingWithSymmPerChannelQuantParams()
|
/packages/modules/NeuralNetworks/runtime/ |
D | ModelBuilder.cpp | 181 mLargeOperandValues.push_back(LargeValue{.operandIndex = index, .buffer = buffer}); in setOperandValue() 292 Operand& operand = mOperands[l.operandIndex]; in copyLargeValuesToSharedMemory() 310 Operand& operand = mOperands[l.operandIndex]; in copyLargeValuesToSharedMemory() 440 const uint32_t operandIndex = indexList[i]; in identifyInputsAndOutputs() local 441 if (operandIndex >= mOperands.size()) { in identifyInputsAndOutputs() 445 << operandIndex << " as this exceeds the numbe of operands " in identifyInputsAndOutputs() 449 (*indexVector)[i] = operandIndex; in identifyInputsAndOutputs() 450 Operand& operand = mOperands[operandIndex]; in identifyInputsAndOutputs() 453 << operandIndex in identifyInputsAndOutputs() 817 for (uint32_t operandIndex : mOperations[operationIndex].inputs) { in sortIntoRunOrder() local [all …]
|
D | ExecutionPlan.cpp | 151 for (uint32_t operandIndex : operation.inputs) { in OperandTracker() local 152 auto lifetime = mModel->getOperand(operandIndex).lifetime; in OperandTracker() 156 mOperandToOperations.emplace(operandIndex, operationIndex); in OperandTracker() 169 for (uint32_t operandIndex : operation.outputs) { in markProcessed() local 170 auto range = mOperandToOperations.equal_range(operandIndex); in markProcessed() 220 void addRole(const ExecutionStep& step, uint32_t operandIndex, IOType type, in addRole() argument 222 SourceOperandIndex source = {step.getSourceModelIndex(), operandIndex}; in addRole() 1461 std::shared_ptr<Controller> controller, SourceOperandIndex operandIndex) const { in getBuffer() 1467 if (auto it = sourceOperandToLocationOfTemporary.find(operandIndex); in getBuffer() 1472 } else if (auto it = sourceOperandToInputIndex.find(operandIndex); in getBuffer() [all …]
|
D | ModelBuilder.h | 209 uint32_t operandIndex; member
|
D | ExecutionPlan.h | 808 SourceOperandIndex operandIndex) const; 812 int readConditionValue(std::shared_ptr<Controller> controller, SourceOperandIndex operandIndex,
|
D | Manager.cpp | 319 for (uint32_t operandIndex : operands) { in getSupportedOperations() local 320 const Operand& operand = model.main.operands[operandIndex]; in getSupportedOperations()
|
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/ |
D | TestUtils.cpp | 151 for (uint32_t operandIndex : testModel.main.inputIndexes) { in createRequest() local 152 const auto& op = testModel.main.operands[operandIndex]; in createRequest() 170 for (uint32_t operandIndex : testModel.main.outputIndexes) { in createRequest() local 171 const auto& op = testModel.main.operands[operandIndex]; in createRequest()
|
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include/ |
D | TestHarness.h | 372 for (const auto operandIndex : operation.inputs) { in hasQuant8CoupledOperands() 373 if (subgraph.operands[operandIndex].type == in hasQuant8CoupledOperands() 379 for (const auto operandIndex : operation.outputs) { in hasQuant8CoupledOperands() 380 if (subgraph.operands[operandIndex].type == in hasQuant8CoupledOperands()
|
/packages/modules/NeuralNetworks/common/ |
D | TypeUtils.cpp | 171 for (uint32_t operandIndex : operation.inputs) { in countNumberOfConsumers() local 172 if (operandIndex >= numberOfConsumers.size()) { in countNumberOfConsumers() 175 << operandIndex << " vs " << numberOfConsumers.size() << ")"; in countNumberOfConsumers() 177 numberOfConsumers[operandIndex]++; in countNumberOfConsumers()
|
D | CpuExecutor.cpp | 672 const uint32_t operandIndex = indexes[i]; in updateForArguments() local 674 RunTimeOperandInfo& to = operands[operandIndex]; in updateForArguments() 1864 const uint32_t operandIndex = outputIndexes[i]; in setOutputShapes() local 1865 const RunTimeOperandInfo& from = operands[operandIndex]; in setOutputShapes()
|
D | ValidateHal.cpp | 768 const uint32_t operandIndex = operandIndexes[requestArgumentIndex]; in validateRequestArguments() local 769 const V1_3::Operand& operand = operands[operandIndex]; in validateRequestArguments()
|
D | Validation.cpp | 1183 const uint32_t operandIndex = operandIndexes[requestArgumentIndex]; in validateRequestArgumentsForModel() local 1184 const Operand& operand = operands[operandIndex]; in validateRequestArgumentsForModel()
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimConverter.cpp | 109 uint32_t operandIndex = resultModel.addOperand(&operandType); in convertSubgraphFromHAL() local 120 resultModel.setOperandExtensionData(operandIndex, extensionData.data(), in convertSubgraphFromHAL()
|
/packages/modules/NeuralNetworks/extensions/ |
D | README.md | 140 CHECK_EQ(ANeuralNetworksModel_setOperandExtensionData(model, operandIndex, ¶ms, sizeof(params)),
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | SampleDriverFloatXNNPACK.cpp | 78 const uint32_t operandIndex = indexes[i]; in updateForArguments() local 80 RunTimeOperandInfo& to = operands[operandIndex]; in updateForArguments()
|