Home
last modified time | relevance | path

Searched refs:operandIndex (Results 1 – 17 of 17) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp415 const uint32_t operandIndex = model->addOperand(&biasType); in makeRnnSpecialInput() local
418 model->setOperandValue(operandIndex, biasValue); in makeRnnSpecialInput()
419 return int(operandIndex); in makeRnnSpecialInput()
433 const uint32_t operandIndex = model->addOperand(&permType); in makeTransposeSpecialInput() local
435 model->setOperandValue(operandIndex, permValue); in makeTransposeSpecialInput()
436 return int(operandIndex); in makeTransposeSpecialInput()
743 const uint32_t operandIndex = model.addOperand(&activationFunctionType); in TEST_P() local
749 model.setOperandValue(operandIndex, activationFunction); in TEST_P()
750 operationInputs[operationInputIndex] = operandIndex; in TEST_P()
754 const int operandIndex = (this->*(operationPattern.mMakeSpecialInput))( in TEST_P() local
[all …]
DTestOperandExtraParams.cpp121 int operandIndex = nextOperandIndex++; in testAddingWithSymmPerChannelQuantParams() local
122 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, in testAddingWithSymmPerChannelQuantParams()
DTestValidation.cpp464 const int32_t operandIndex = addTensorOperand(ANEURALNETWORKS_TENSOR_QUANT8_SYMM_PER_CHANNEL); in TEST_F() local
473 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(nullptr, operandIndex, in TEST_F()
477 ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, nullptr), in TEST_F()
479 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex + 1, in TEST_F()
482 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, in TEST_F()
494 const int32_t operandIndex = in TEST_F() local
504 EXPECT_EQ(ANeuralNetworksModel_setOperandSymmPerChannelQuantParams(mModel, operandIndex, in TEST_F()
510 const int32_t operandIndex = in TEST_F() local
515 ANeuralNetworksModel_setOperandExtensionData(nullptr, operandIndex, &data, dataLength), in TEST_F()
518 ANeuralNetworksModel_setOperandExtensionData(mModel, operandIndex, nullptr, dataLength), in TEST_F()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestUtils.cpp154 for (uint32_t operandIndex : testModel.main.inputIndexes) { in createRequest() local
155 NN_RET_CHECK_LT(operandIndex, testModel.main.operands.size()) in createRequest()
156 << "createRequest failed because inputIndex of operand " << operandIndex in createRequest()
159 const auto& op = testModel.main.operands[operandIndex]; in createRequest()
178 for (uint32_t operandIndex : testModel.main.outputIndexes) { in createRequest() local
179 NN_RET_CHECK_LT(operandIndex, testModel.main.operands.size()) in createRequest()
180 << "createRequest failed because outputIndex of operand " << operandIndex in createRequest()
183 const auto& op = testModel.main.operands[operandIndex]; in createRequest()
/packages/modules/NeuralNetworks/runtime/
DModelBuilder.cpp186 mLargeOperandValues.push_back(LargeValue{.operandIndex = index, .buffer = buffer}); in setOperandValue()
297 Operand& operand = mOperands[l.operandIndex]; in copyLargeValuesToSharedMemory()
315 Operand& operand = mOperands[l.operandIndex]; in copyLargeValuesToSharedMemory()
457 const uint32_t operandIndex = indexList[i]; in identifyInputsAndOutputs() local
458 if (operandIndex >= mOperands.size()) { in identifyInputsAndOutputs()
462 << operandIndex << " as this exceeds the numbe of operands " in identifyInputsAndOutputs()
466 (*indexVector)[i] = operandIndex; in identifyInputsAndOutputs()
467 Operand& operand = mOperands[operandIndex]; in identifyInputsAndOutputs()
470 << operandIndex in identifyInputsAndOutputs()
847 for (uint32_t operandIndex : mOperations[operationIndex].inputs) { in sortIntoRunOrder() local
[all …]
DExecutionPlan.cpp191 for (uint32_t operandIndex : operation.inputs) { in OperandTracker() local
192 auto lifetime = mModel->getOperand(operandIndex).lifetime; in OperandTracker()
196 mOperandToOperations.emplace(operandIndex, operationIndex); in OperandTracker()
209 for (uint32_t operandIndex : operation.outputs) { in markProcessed() local
210 auto range = mOperandToOperations.equal_range(operandIndex); in markProcessed()
260 void addRole(const ExecutionStep& step, uint32_t operandIndex, IOType type, in addRole() argument
262 SourceOperandIndex source = {step.getSourceModelIndex(), operandIndex}; in addRole()
1513 std::shared_ptr<Controller> controller, SourceOperandIndex operandIndex) const { in getBuffer()
1519 if (auto it = sourceOperandToLocationOfTemporary.find(operandIndex); in getBuffer()
1524 } else if (auto it = sourceOperandToInputIndex.find(operandIndex); in getBuffer()
[all …]
DModelBuilder.h223 uint32_t operandIndex; member
DExecutionPlan.h808 SourceOperandIndex operandIndex) const;
812 int readConditionValue(std::shared_ptr<Controller> controller, SourceOperandIndex operandIndex,
DManager.cpp376 for (uint32_t operandIndex : operands) { in getSupportedOperations() local
377 const Operand& operand = model.main.operands[operandIndex]; in getSupportedOperations()
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include/
DTestHarness.h401 for (const auto operandIndex : operation.inputs) { in hasQuant8CoupledOperands()
402 if (subgraph.operands[operandIndex].type == in hasQuant8CoupledOperands()
408 for (const auto operandIndex : operation.outputs) { in hasQuant8CoupledOperands()
409 if (subgraph.operands[operandIndex].type == in hasQuant8CoupledOperands()
/packages/modules/NeuralNetworks/common/types/src/
DTypeUtils.cpp231 for (uint32_t operandIndex : operation.inputs) { in countNumberOfConsumers() local
232 if (operandIndex >= numberOfConsumers.size()) { in countNumberOfConsumers()
235 << operandIndex << " vs " << numberOfConsumers.size() << ")"; in countNumberOfConsumers()
237 numberOfConsumers[operandIndex]++; in countNumberOfConsumers()
DValidation.cpp1163 const uint32_t operandIndex = operandIndexes[requestArgumentIndex]; in validateRequestArgumentsForModel() local
1164 const Operand& operand = operands[operandIndex]; in validateRequestArgumentsForModel()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimConverter.cpp113 uint32_t operandIndex = resultModel.addOperand(&operandType); in convertSubgraphFromHAL() local
124 resultModel.setOperandExtensionData(operandIndex, extensionData.data(), in convertSubgraphFromHAL()
/packages/modules/NeuralNetworks/common/
DCpuExecutor.cpp672 const uint32_t operandIndex = indexes[i]; in updateForArguments() local
674 RunTimeOperandInfo& to = operands[operandIndex]; in updateForArguments()
1865 const uint32_t operandIndex = outputIndexes[i]; in setOutputShapes() local
1866 const RunTimeOperandInfo& from = operands[operandIndex]; in setOutputShapes()
DValidateHal.cpp769 const uint32_t operandIndex = operandIndexes[requestArgumentIndex]; in validateRequestArguments() local
770 const V1_3::Operand& operand = operands[operandIndex]; in validateRequestArguments()
/packages/modules/NeuralNetworks/extensions/
DREADME.md140 CHECK_EQ(ANeuralNetworksModel_setOperandExtensionData(model, operandIndex, &params, sizeof(params)),
/packages/modules/NeuralNetworks/driver/sample_hidl/
DSampleDriverFloatXNNPACK.cpp78 const uint32_t operandIndex = indexes[i]; in updateForArguments() local
80 RunTimeOperandInfo& to = operands[operandIndex]; in updateForArguments()