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

Method pin

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

Source from the content-addressed store, hash-verified

1563}
1564
1565void ChannelImpl::DynamicSublinear::pin(const SmallVector<TensorInfo*>& vec) {
1566 for (auto i : vec) {
1567 i->pin();
1568 erase_candidate(i);
1569 }
1570}
1571
1572void ChannelImpl::DynamicSublinear::unpin(
1573 const SmallVector<TensorInfo*>& vec, size_t& dtr_evictee_minimum_size) {

Callers 3

get_valueMethod · 0.45
flush_apply_stackMethod · 0.45
process_one_taskMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected