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

Method lock

imperative/src/impl/value.cpp:145–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145ValueRef ValueWeakRef::lock() {
146 auto strong_storage = m_storage.lock();
147 if ((!strong_storage) || strong_storage->m_successor) {
148 return {};
149 }
150 return {strong_storage};
151}
152
153Value::Value() {
154 m_id = nr_values++;

Callers 15

init_graph_rtFunction · 0.45
operator()Method · 0.45
TESTFunction · 0.45
get_value_by_idMethod · 0.45
end_record_valuesMethod · 0.45
do_recordMethod · 0.45
monitor_eventsMethod · 0.45
wait_tensorMethod · 0.45
on_unregisterMethod · 0.45
freezeMethod · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
CpuInfoTmpReplaceMethod · 0.36