| 517 | } |
| 518 | |
| 519 | OwnedBlob::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 | |
| 526 | OwnedBlob::OwnedBlob(CompNode cn, size_t sz) |
| 527 | : Blob(cn, sz), m_storage{}, m_id{next_blob_id++} { |
nothing calls this directly
no test coverage detected