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

Method clear

imperative/src/impl/value.cpp:268–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268void ValueRefList::clear() {
269 if (m_data) {
270 if (m_size != 1) {
271 delete[] m_data;
272 } else {
273 mgb_assert(m_data == inline_storage());
274 m_data->~ValueRef();
275 }
276 }
277 m_data = nullptr;
278 m_size = 0;
279}
280
281} // namespace imperative
282} // namespace mgb

Callers 15

TESTFunction · 0.45
begin_record_valuesMethod · 0.45
value.cppFile · 0.45
defragMethod · 0.45
on_comp_node_finalizeMethod · 0.45
ProfilerPluginMethod · 0.45
monitor_eventsMethod · 0.45
disableMethod · 0.45
on_comp_node_finalizeMethod · 0.45
encodeFunction · 0.45
decodeFunction · 0.45
update_versionMethod · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36