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

Method OwnedBlob

imperative/src/impl/physical_tensor.cpp:519–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519OwnedBlob::OwnedBlob(const DeviceTensorStorage& s)
520 : Blob(s.comp_node(), s.size() + s.offset()),
521 m_storage{s.raw_storage()},
522 m_id{next_blob_id++} {
523 BlobManager::inst()->register_blob(this);
524}
525
526OwnedBlob::OwnedBlob(CompNode cn, size_t sz)
527 : Blob(cn, sz), m_storage{}, m_id{next_blob_id++} {

Callers

nothing calls this directly

Calls 5

instFunction · 0.85
register_blobMethod · 0.80
comp_nodeMethod · 0.45
sizeMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected