MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / create_default_pass_manager

Function create_default_pass_manager

src/graph/Utils.cpp:74–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74PassManager create_default_pass_manager(Target target, const GraphConfig &cfg)
75{
76 ARM_COMPUTE_UNUSED(target);
77 PassManager pm;
78
79 // Passes that mutate graph IR
80 if (cfg.use_synthetic_type)
81 {
82 switch (cfg.synthetic_type)
83 {
84 case DataType::QASYMM8:
85 case DataType::QASYMM8_SIGNED:
86 {
87 pm.append(std::make_unique<SyntheticDataTypeMutator>(cfg.synthetic_type));
88 break;
89 }
90 default:
91 {
92 ARM_COMPUTE_ERROR("Unsupported DataType for SyntheticDataTypeMutator");
93 break;
94 }
95 }
96 }
97 pm.append(std::make_unique<NodeFusionMutator>());
98 pm.append(std::make_unique<GroupedConvolutionMutator>());
99 pm.append(std::make_unique<InPlaceOperationMutator>());
100
101 // Passes that mutate backend information
102 pm.append(std::make_unique<DepthConcatSubTensorMutator>());
103 pm.append(std::make_unique<SplitLayerSubTensorMutator>());
104 pm.append(std::make_unique<NodeExecutionMethodMutator>());
105
106 return pm;
107}
108
109void release_default_graph_context(GraphContext &ctx)
110{

Callers 2

finalizeMethod · 0.85
do_setupMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected