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

Method unpin

imperative/src/impl/interpreter/interpreter_impl.cpp:1572–1581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1570}
1571
1572void ChannelImpl::DynamicSublinear::unpin(
1573 const SmallVector<TensorInfo*>& vec, size_t& dtr_evictee_minimum_size) {
1574 for (auto i : vec) {
1575 i->unpin();
1576 if (i->pinned == 0 && i->size_exceeds_thd(dtr_evictee_minimum_size) &&
1577 i->cand_index == UINT_MAX) {
1578 insert_candidate(i);
1579 }
1580 }
1581}
1582
1583void ChannelImpl::DynamicSublinear::update_dsu_after_recompute(TensorInfo* ptr) {
1584 auto&& dsu_fa = find_father(ptr->dsu_ptr);

Callers 3

get_valueMethod · 0.45
do_apply_opMethod · 0.45
process_one_taskMethod · 0.45

Calls 1

size_exceeds_thdMethod · 0.80

Tested by

no test coverage detected