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

Method register_blob

imperative/src/impl/blob_manager_impl.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void BlobManagerImpl::register_blob(OwnedBlob* blob) {
18 // add blob into the comp2blobs map
19 MGB_LOCK_GUARD(m_mtx);
20 mgb_assert(m_comp2blobs_map[blob->m_comp_node].insert(blob));
21}
22
23void BlobManagerImpl::unregister_blob(OwnedBlob* blob) {
24 // erase blob into the comp2blobs map

Callers 1

OwnedBlobMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected