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

Method end_record_values

imperative/src/impl/value.cpp:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181std::vector<ValueRef> Value::end_record_values() {
182 recording_values = false;
183 std::vector<ValueRef> recorded_strong_values;
184 for (auto&& weak_value : recorded_values) {
185 if (auto value = weak_value.lock()) {
186 recorded_strong_values.push_back(value);
187 }
188 }
189 return recorded_strong_values;
190}
191
192void Value::try_rethrow() {
193 if (type() == PrimitiveType<ErrorValue>::instance) {

Callers

nothing calls this directly

Calls 2

lockMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected