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

Method update_subgraph_outspec

src/opr/impl/loop/impl.cpp:1286–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284}
1285
1286void LoopImpl::MutableStateSaver::update_subgraph_outspec(
1287 ComputingGraph::OutputSpec& spec) {
1288 for (auto&& i : m_var2info) {
1289 if (i.second.need_value) {
1290 spec.push_back({i.second.value_updator, {}});
1291 } else if (i.second.need_shape) {
1292 spec.push_back({i.second.shape_updator, {}});
1293 }
1294 }
1295}
1296
1297void LoopImpl::MutableStateSaver::on_fwd_begin() {
1298 if (!m_enabled)

Callers 1

compileMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected