Home
last modified time | relevance | path

Searched refs:subgraph (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/NeuralNetworks/shim_and_sl/
DShimConverter.cpp58 const auto& subgraph = subgraphIndex == 0 ? model.main : model.referenced[subgraphIndex - 1]; in convertSubgraphFromHAL() local
72 for (int i = 0; i < subgraph.operands.size(); ++i) { in convertSubgraphFromHAL()
73 const auto& operand = subgraph.operands[i]; in convertSubgraphFromHAL()
154 auto subgraph = convertSubgraphFromHAL(nnapi, memoryPools, model, allModels, in convertSubgraphFromHAL() local
157 if (subgraph) { in convertSubgraphFromHAL()
158 resultModel.setOperandValueFromModel(i, subgraph); in convertSubgraphFromHAL()
188 for (int i = 0; i < subgraph.operations.size(); ++i) { in convertSubgraphFromHAL()
189 const auto& operation = subgraph.operations[i]; in convertSubgraphFromHAL()
224 std::vector<uint32_t> inputIndexes(subgraph.inputIndexes.begin(), subgraph.inputIndexes.end()); in convertSubgraphFromHAL()
225 std::vector<uint32_t> outputIndexes(subgraph.outputIndexes.begin(), in convertSubgraphFromHAL()
[all …]
/packages/modules/NeuralNetworks/driver/sample/
DSampleDriverFloatXNNPACK.cpp109 const V1_3::Subgraph& subgraph, const std::vector<RunTimePoolInfo>& modelPoolInfos, in initializeRunTimeInfo() argument
111 const size_t count = subgraph.operands.size(); in initializeRunTimeInfo()
114 const V1_3::Operand& from = subgraph.operands[i]; in initializeRunTimeInfo()
175 std::unique_ptr<xnn_subgraph, decltype(&xnn_delete_subgraph)> subgraph( in Create() local
245 subgraph.get(), xnn_datatype_fp32, dims.size(), dims.data(), data, in Create()
255 if (VisitNode(subgraph.get(), operation, operands.data(), xnnpackTensors) != in Create()
263 status = xnn_create_runtime_v2(subgraph.get(), threadpool, /*flags=*/0, &runtimePtr); in Create()
496 static V1_3::ErrorStatus VisitNode(xnn_subgraph_t subgraph, const V1_3::Operation& operation, in VisitNode() argument
501 return VisitAbsNode(subgraph, operation, operands, xnnpackTensors); in VisitNode()
503 return VisitAddNode(subgraph, operation, operands, xnnpackTensors); in VisitNode()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include/
DTestHarness.h319 for (const TestSubgraph& subgraph : referenced) { in forEachSubgraph() local
320 handler(subgraph); in forEachSubgraph()
326 for (TestSubgraph& subgraph : referenced) { in forEachSubgraph()
327 handler(subgraph); in forEachSubgraph()
334 newTestModel.forEachSubgraph([](TestSubgraph& subgraph) { in copy()
335 for (TestOperand& operand : subgraph.operands) { in copy()
344 forEachSubgraph([&result](const TestSubgraph& subgraph) { in hasQuant8CoupledOperands()
348 for (const TestOperation& operation : subgraph.operations) { in hasQuant8CoupledOperands()
373 if (subgraph.operands[operandIndex].type == in hasQuant8CoupledOperands()
380 if (subgraph.operands[operandIndex].type == in hasQuant8CoupledOperands()
[all …]
/packages/modules/NeuralNetworks/common/
DValidateHal.cpp475 const Model::Subgraph& subgraph = *getSubgraph(modelOperand); in validateOperations() local
476 CHECK_LT(subgraph.inputIndexes[index], subgraph.operands.size()); in validateOperations()
477 return &subgraph.operands[subgraph.inputIndexes[index]]; in validateOperations()
481 const Model::Subgraph& subgraph = *getSubgraph(modelOperand); in validateOperations() local
482 CHECK_LT(subgraph.outputIndexes[index], subgraph.operands.size()); in validateOperations()
483 return &subgraph.operands[subgraph.outputIndexes[index]]; in validateOperations()
674 static bool checkNoReferenceCycles(const V1_3::Model& model, const V1_3::Subgraph& subgraph, in checkNoReferenceCycles() argument
676 auto [_, isNew] = path->insert(&subgraph); in checkNoReferenceCycles()
681 for (const V1_3::Operand& operand : subgraph.operands) { in checkNoReferenceCycles()
689 path->erase(&subgraph); in checkNoReferenceCycles()
[all …]
DValidation.cpp379 Result<Version> validateModelSubgraph(const Model::Subgraph& subgraph,
809 Result<void> validateExecutionOrder(const Model::Subgraph& subgraph) { in validateExecutionOrder() argument
813 operandValueKnown.reserve(subgraph.operands.size()); in validateExecutionOrder()
814 std::transform(subgraph.operands.begin(), subgraph.operands.end(), in validateExecutionOrder()
825 for (size_t i = 0; i < subgraph.operations.size(); ++i) { in validateExecutionOrder()
826 const auto& operation = subgraph.operations[i]; in validateExecutionOrder()
846 for (size_t i = 0; i < subgraph.operands.size(); ++i) { in validateExecutionOrder()
862 Result<Version> validateModelSubgraph(const Model::Subgraph& subgraph, in validateModelSubgraph() argument
878 NN_VALIDATE(!subgraph.operands.empty()); in validateModelSubgraph()
879 NN_VALIDATE(!subgraph.operations.empty()); in validateModelSubgraph()
[all …]
DTypeUtils.cpp775 std::ostream& operator<<(std::ostream& os, const Model::Subgraph& subgraph) { in operator <<() argument
780 return os << "Model::Subgraph{.operands=" << subgraph.operands in operator <<()
781 << ", .operations=" << subgraph.operations in operator <<()
782 << ", .inputIndexes=" << subgraph.inputIndexes in operator <<()
783 << ", .outputIndexes=" << subgraph.outputIndexes << "}"; in operator <<()
DLegacyHalUtils.cpp155 static void logSubgraphToInfo(std::string label, const V1_3::Subgraph& subgraph) { in logSubgraphToInfo() argument
156 LOG(INFO) << label << ".operands" << toString(subgraph.operands); in logSubgraphToInfo()
157 LOG(INFO) << label << ".operations" << toString(subgraph.operations); in logSubgraphToInfo()
158 LOG(INFO) << label << ".inputIndexes" << toString(subgraph.inputIndexes); in logSubgraphToInfo()
159 LOG(INFO) << label << ".outputIndexes" << toString(subgraph.outputIndexes); in logSubgraphToInfo()
1561 Model::Subgraph uncheckedConvert(const V1_3::Subgraph& subgraph) { in uncheckedConvert() argument
1562 return handleError(unvalidatedConvert(subgraph)); in uncheckedConvert()
1716 V1_3::Subgraph convertToV1_3(const Model::Subgraph& subgraph) { in convertToV1_3() argument
1717 return handleError(V1_3::utils::unvalidatedConvert(subgraph)); in convertToV1_3()
DCpuExecutor.cpp600 int CpuExecutor::executeSubgraph(const Model::Subgraph& subgraph, RunTimeOperandInfo* operands) { in executeSubgraph() argument
601 VLOG(CPUEXE) << "CpuExecutor::executeSubgraph " << subgraph; in executeSubgraph()
603 for (const auto& operation : subgraph.operations) { in executeSubgraph()
610 const Model::Subgraph& subgraph) { in initializeRunTimeInfo() argument
612 const size_t count = subgraph.operands.size(); in initializeRunTimeInfo()
615 countNumberOfConsumers(count, subgraph.operations).value(); in initializeRunTimeInfo()
617 const Operand& from = subgraph.operands[i]; in initializeRunTimeInfo()
/packages/modules/NeuralNetworks/runtime/test/
DGeneratedTestUtils.cpp114 auto processSubgraph = [&size](const TestSubgraph& subgraph) { argument
115 for (const TestOperand& operand : subgraph.operands) {
123 for (const TestSubgraph& subgraph : testModel.referenced) { local
124 processSubgraph(subgraph);
133 static void createModelFromSubgraph(const TestSubgraph& subgraph, bool testDynamicOutputShape, argument
138 for (const auto& operand : subgraph.operands) {
179 for (const auto& operation : subgraph.operations) {
184 model->identifyInputsAndOutputs(subgraph.inputIndexes, subgraph.outputIndexes);
DTestPartitioning.cpp288 uint32_t lookupOperation(const HidlModel& model, const V1_3::Subgraph& subgraph, in lookupOperation() argument
291 [&subgraph](uint32_t index) -> const V1_3::Operation& { in lookupOperation()
292 return subgraph.operations[index]; in lookupOperation()
294 [&subgraph](uint32_t index) -> const V1_3::Operand& { in lookupOperation()
295 return subgraph.operands[index]; in lookupOperation()
414 const V1_3::Subgraph& subgraph) { in getSupportedOperationsForSubgraph() argument
415 CHECK(&subgraph == &model.main || in getSupportedOperationsForSubgraph()
417 [&subgraph](const V1_3::Subgraph& refSubgraph) { in getSupportedOperationsForSubgraph()
418 return &subgraph == &refSubgraph; in getSupportedOperationsForSubgraph()
420 auto supportsEntireSubgraph = [this, &model, &subgraph](uint32_t refSubgraphOperandIndex) { in getSupportedOperationsForSubgraph()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/
Dexample_generator.py128 def GetSubgraphStruct(subgraph): argument
131 COMMENT_KEY: subgraph.name,
132 "operands": [GetOperandStruct(op) for op in subgraph.operands],
133 "operations": [GetOperationStruct(op) for op in subgraph.operations],
134 "inputIndexes": [op.model_index for op in subgraph.GetInputs()],
135 "outputIndexes": [op.model_index for op in subgraph.GetOutputs()],
/packages/modules/NeuralNetworks/runtime/
DModelBuilder.cpp876 void updateOperandLocations(const ModelBuilder* refModel, Model::Subgraph* subgraph);
913 Model::Subgraph subgraph; in makeSubgraph() local
914 subgraph.operands = model->mOperands; in makeSubgraph()
915 subgraph.operations = model->mOperations; in makeSubgraph()
916 subgraph.inputIndexes = model->mInputIndexes; in makeSubgraph()
917 subgraph.outputIndexes = model->mOutputIndexes; in makeSubgraph()
918 return subgraph; in makeSubgraph()
922 Model::Subgraph* subgraph) { in updateOperandLocations() argument
923 for (Operand& operand : subgraph->operands) { in updateOperandLocations()
935 for (Operand& operand : subgraph->operands) { in updateOperandLocations()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/diagram/
Dutilityclass.dot15 subgraph cluster0 {
27 subgraph cluster1 {
47 subgraph cluster2 {
Darchitecture.dot14 subgraph cluster1 {
24 subgraph cluster2 {
Dmove1.dot12 subgraph cluster1 {
30 subgraph cluster2 {
Diterative-parser-states-diagram.dot16 subgraph clusterArray {
25 subgraph clusterObject {
Dmove3.dot13 subgraph cluster1 {
36 subgraph cluster2 {
Dmove2.dot12 subgraph cluster1 {
35 subgraph cluster2 {
Dtutorial.dot12 subgraph cluster1 {
Dnormalparsing.dot24 subgraph cluster1 {
Dsimpledom.dot24 subgraph cluster1 {
Dinsituparsing.dot31 subgraph cluster1 {
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestHarness.cpp276 model.forEachSubgraph([&hasFloat16Inputs](const TestSubgraph& subgraph) { in checkResults() argument
278 hasFloat16Inputs = std::any_of(subgraph.operands.begin(), subgraph.operands.end(), in checkResults()
296 auto processSubgraph = [](TestSubgraph* subgraph) { in convertQuant8AsymmOperandsToSigned() argument
297 for (TestOperand& operand : subgraph->operands) { in convertQuant8AsymmOperandsToSigned()
312 for (TestSubgraph& subgraph : converted.referenced) { in convertQuant8AsymmOperandsToSigned()
313 processSubgraph(&subgraph); in convertQuant8AsymmOperandsToSigned()
/packages/modules/NeuralNetworks/common/include/
DCpuExecutor.h163 std::vector<RunTimeOperandInfo> initializeRunTimeInfo(const Model::Subgraph& subgraph);
171 int executeSubgraph(const Model::Subgraph& subgraph, RunTimeOperandInfo* operands);
/packages/modules/NeuralNetworks/common/include/nnapi/
DTypeUtils.h121 std::ostream& operator<<(std::ostream& os, const Model::Subgraph& subgraph);

12