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

Method borrow_to

imperative/src/impl/physical_tensor.cpp:542–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542BlobPtr OwnedBlob::borrow_to(CompNode cn) {
543 return std::make_shared<BorrowedBlob>(
544 cn, std::static_pointer_cast<OwnedBlob>(shared_from_this()));
545}
546
547bool OwnedBlob::storage_is_unique() {
548 return m_storage.unique();

Callers 1

apply_on_physical_tensorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected