MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / layout_transform

Method layout_transform

src/gopt/impl/inference.cpp:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110SymbolVarArray gopt::layout_transform(
111 const SymbolVarArray& dest_vars, GraphTuningOptions::Target target) {
112 GraphTuningOptions options;
113 options.target = target;
114 options.enable_layout_transform();
115 return gopt::GraphOptimizer{}
116 .add_passes_for_graph_tuning_options(options)
117 .apply({dest_vars})
118 .endpoint_vars();
119}
120
121namespace {
122void modify_conv_strategy(

Callers

nothing calls this directly

Calls 1

applyMethod · 0.45

Tested by

no test coverage detected