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

Method remove_output_mark

imperative/python/src/tensor.cpp:1261–1267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259 outmark_to_id[mark] = id;
1260 }
1261 void remove_output_mark(size_t id) {
1262 auto marks = trace_result->vars[id].out_marker;
1263 trace_result->vars[id].out_marker.clear();
1264 for (auto m : marks) {
1265 outmark_to_id.erase(m);
1266 }
1267 }
1268 void enter() {
1269 auto& self = *this;
1270 if (!self.trace_result) { // untraced

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected