Home
last modified time | relevance | path

Searched defs:operand (Results 1 – 25 of 57) sorted by relevance

123

/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomGraphGenerator.cpp44 RandomOperand::RandomOperand(const OperandSignature& operand, TestOperandType dataType, in RandomOperand()
154 static bool asConstant(const std::shared_ptr<RandomOperand>& operand, float prob = 0.5f) { in asConstant()
186 for (auto& operand : mOperands) { in generateValue() local
190 auto requiresBufferAllocation = [](std::shared_ptr<RandomOperand>& operand) -> bool { in generateValue()
195 for (auto& operand : mOperands) { in generateValue() local
216 for (auto operand : operation.inputs) { in generateValue() local
223 for (auto& operand : operation.outputs) { in generateValue() local
255 for (auto& operand : mOperands) { in createTestModel() local
/packages/modules/NeuralNetworks/runtime/
DModelBuilder.cpp101 Operand operand = { in addOperand() local
139 Operand& operand = mOperands[index]; in setOperandValue() local
210 Operand& operand = mOperands[index]; in setOperandValueFromModel() local
234 Operand& operand = mOperands[index]; in setOperandSymmPerChannelQuantParams() local
270 Operand& operand = mOperands[index]; in setOperandExtensionData() local
297 Operand& operand = mOperands[l.operandIndex]; in copyLargeValuesToSharedMemory() local
315 Operand& operand = mOperands[l.operandIndex]; in copyLargeValuesToSharedMemory() local
337 Operand& operand = mOperands[index]; in setOperandValueFromMemory() local
467 Operand& operand = mOperands[operandIndex]; in identifyInputsAndOutputs() local
608 static bool matchesSpec(TailSpec spec, const Operand& operand, in matchesSpec()
[all …]
DFlatbufferModelBuilderUtils.h121 inline bool tensorOperandHasUnspecifiedRank(const Operand& operand) { in tensorOperandHasUnspecifiedRank()
131 inline bool subgraphOutputOperandHasDynamicShape(const Operand& operand) { in subgraphOutputOperandHasDynamicShape()
145 inline bool isOperandConstant(const Operand& operand) { in isOperandConstant()
DModelArgumentInfo.cpp37 const Operand& operand, const ANeuralNetworksOperandType* type, void* data, uint32_t length, in createFromPointer()
80 const Operand& operand, const ANeuralNetworksOperandType* type, uint32_t poolIndex, in createFromMemory()
113 int ModelArgumentInfo::updateDimensionInfo(const Operand& operand, in updateDimensionInfo()
DTypeManager.h73 uint32_t getSizeOfData(const Operand& operand) const { in getSizeOfData()
DModelArchHasher.cpp35 for (auto& operand : subgraph.operands) { in updateSubgraph() local
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DFuzzTest.cpp68 for (const auto& operand : subgraph.operands) { in areSubgraphsAcyclic() local
96 for (const auto& operand : testSubgraph.operands) { in CreateSubgraph() local
171 const auto& operand = testModel.main.operands[testModel.main.inputIndexes[i]]; in CreateExecution() local
180 const auto& operand = testModel.main.operands[testModel.main.outputIndexes[i]]; in CreateExecution() local
DConverter.cpp83 TestOperand convert(const Operand& operand) { in convert()
115 [](const auto& operand) { return convert(operand); }); in convert()
144 const auto addConsumer = [operands](uint32_t operand) { in calculateNumberOfConsumers()
DFuzzHarness.cpp39 bool operandOverflows(const TestOperand& operand) { in operandOverflows()
/packages/modules/NeuralNetworks/runtime/test/
DGeneratedTestUtils.cpp117 for (const TestOperand& operand : subgraph.operands) { local
140 for (const auto& operand : subgraph.operands) { local
231 const auto& operand = testModel.main.operands[testModel.main.inputIndexes[i]]; local
238 const auto& operand = testModel.main.operands[testModel.main.outputIndexes[i]]; local
DTestCompatibilityLayer.cpp94 const auto& operand = testModel.main.operands[testModel.main.inputIndexes[i]]; in execute() local
102 const auto& operand = testModel.main.operands[testModel.main.outputIndexes[i]]; in execute() local
209 [](const TestOperand& operand) { in compatibleTest()
/packages/modules/NeuralNetworks/runtime/operation_converters/
DSubGraphContext.h93 void SubGraphContext::copyConstantValueToData(const Operand& operand, Type* data, size_t dataSize) { in copyConstantValueToData()
101 Type SubGraphContext::getConstantScalar(const Operand& operand) { in getConstantScalar()
DSubGraphContext.cpp123 const Operand& operand) { in getConstantPointerAndLength()
154 const Operand& operand = mSubgraph->operands[operandIdx]; in createTensorFlatbufferFromOperand() local
/packages/modules/NeuralNetworks/common/
DValidateHal.cpp100 static bool validateOperandExtraParams(const V1_3::Operand& operand, uint32_t index) { in validateOperandExtraParams()
183 V1_3::Operand operand = convertToV1_3(versionedOperand); in validateOperands() local
512 const V1_3::Operand& operand = operands[i]; in validateOperations() local
565 const V1_3::Operand& operand = operands[i]; in validateModelInputOutputs() local
605 const auto& operand = model.operands[i]; in validateGraph() local
682 for (const V1_3::Operand& operand : subgraph.operands) { in checkNoReferenceCycles() local
770 const V1_3::Operand& operand = operands[operandIndex]; in validateRequestArguments() local
917 for (const auto& operand : operands) { in validateMemoryDesc() local
DLegacyHalUtils.cpp119 bool tensorHasUnspecifiedDimensions(const V1_3::Operand& operand) { in tensorHasUnspecifiedDimensions()
748 bool compliantWithV1_0(const V1_3::Operand& operand) { in compliantWithV1_0()
755 bool compliantWithV1_2(const V1_3::Operand& operand) { in compliantWithV1_2()
764 bool compliantWithAidl(const V1_3::Operand& operand) { in compliantWithAidl()
1145 V1_0::Operand convertToV1_0(const V1_2::Operand& operand) { in convertToV1_0()
1155 V1_0::Operand convertToV1_0(const V1_3::Operand& operand) { in convertToV1_0()
1165 V1_2::Operand convertToV1_2(const V1_0::Operand& operand) { in convertToV1_2()
1175 V1_2::Operand convertToV1_2(const V1_3::Operand& operand) { in convertToV1_2()
1186 V1_3::Operand convertToV1_3(const V1_0::Operand& operand) { in convertToV1_3()
1196 V1_3::Operand convertToV1_3(const V1_2::Operand& operand) { in convertToV1_3()
[all …]
DHalBufferTracker.cpp37 const Operand& operand) { in create()
50 std::set<HalPreparedModelRole> roles, const Operand& operand) in HalManagedBuffer()
DModelUtils.cpp103 for (const auto& operand : operands) { in identifyUsedSubgraphs() local
146 for (const auto& operand : subgraph.operands) { in identifyUsedPools() local
168 void fixOperandDataLocation(Operand* operand, Model::OperandValues* newOperandValues, in fixOperandDataLocation()
DBufferTracker.cpp37 const Operand& operand) { in create()
50 std::set<PreparedModelRole> roles, const Operand& operand) in ManagedBuffer()
/packages/modules/NeuralNetworks/common/types/src/
DValidation.cpp173 Result<Version> validateOperandLifeTime(const Operand& operand) { in validateOperandLifeTime()
356 const Operand& operand, size_t operandValuesSize, const std::vector<size_t>& poolSizes, in validateOperandDataLocation()
424 Result<Version> validateOperandDimensions(const Operand& operand) { in validateOperandDimensions()
473 Result<Version> validateOperandScale(const Operand& operand) { in validateOperandScale()
516 Result<Version> validateOperandZeroPoint(const Operand& operand) { in validateOperandZeroPoint()
567 Result<Version> validateOperandExtraParams(const Operand& operand) { in validateOperandExtraParams()
631 Result<Version> validateOperand(const Operand& operand, size_t operandValuesSize, in validateOperand()
756 const Operand& operand = operands[i]; in validateModelSubgraphInputOutputs() local
788 std::back_inserter(operandValueKnown), [](const Operand& operand) { in validateExecutionOrder()
948 for (const Operand& operand : subgraph.operands) { in checkNoReferenceCycles() local
[all …]
DSharedMemory.cpp49 bool hasNoPointerData(const Operand& operand) { in hasNoPointerData()
61 void copyPointersToSharedMemory(Operand* operand, ConstantMemoryBuilder* memoryBuilder) { in copyPointersToSharedMemory()
79 [memoryBuilder](auto& operand) { in copyPointersToSharedMemory()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimConverter.cpp77 const auto& operand = subgraph.operands[i]; in convertSubgraphFromHAL() local
271 const auto& operand = subgraph.operands[i]; in needsCopiedOperandValues() local
290 std::back_inserter(operandValueKnown), [](const Operand& operand) { in isValid()
332 const auto& operand = subgraph.operands[i]; in isValid() local
/packages/modules/NeuralNetworks/common/cpu_operations/
DMultinomial.cpp49 inline T* GetBuffer(RunTimeOperandInfo* operand) { in GetBuffer()
54 inline const T* GetBuffer(const RunTimeOperandInfo* operand) { in GetBuffer()
DBidirectionalSequenceLSTM.cpp37 inline T* GetBuffer(RunTimeOperandInfo* operand) { in GetBuffer()
42 inline const T* GetBuffer(const RunTimeOperandInfo* operand) { in GetBuffer()
47 inline const T* GetOptionalBuffer(const RunTimeOperandInfo* operand) { in GetOptionalBuffer()
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestUtils.cpp44 Result<Operand> createOperand(const TestOperand& operand, Model::OperandValues* operandValues, in createOperand()
102 for (const auto& operand : testSubgraph.operands) { in createSubgraph() local
/packages/modules/NeuralNetworks/common/include/
DCpuExecutor.h275 inline size_t NumDimensions(const RunTimeOperandInfo* operand) { in NumDimensions()
279 inline uint32_t SizeOfDimension(const RunTimeOperandInfo* operand, int i) { in SizeOfDimension()

123