|
Mila 0.13.48
Deep Neural Network Library
|
Type-erased interface for a serialized tensor blob. More...

Public Member Functions | |
| ITensorBlob ()=default | |
| ITensorBlob (const ITensorBlob &)=delete | |
| ITensorBlob (ITensorBlob &&)=default | |
| virtual | ~ITensorBlob ()=default |
| virtual const void * | data () const noexcept=0 |
| virtual const TensorMetadata & | getMetadata () const noexcept=0 |
| ITensorBlob & | operator= (const ITensorBlob &)=delete |
| ITensorBlob & | operator= (ITensorBlob &&)=default |
| virtual size_t | sizeBytes () const noexcept=0 |
Type-erased interface for a serialized tensor blob.
Carries metadata alongside a raw host pointer to the underlying bytes. Concrete TensorBlob<MR> implementations own the memory via TensorBuffer. When MR is CudaPinnedMemoryResource, data() returns a pinned host pointer enabling direct DMA in the CUDA copyFromBlob path without driver staging.
This interface is the virtual boundary for loadParameter_ overrides — component implementations receive an ITensorBlob regardless of the originating memory resource.
|
virtualdefault |
|
default |

|
delete |

|
default |

|
pure virtualnoexcept |
Implemented in Mila::Dnn::Serialization::TensorBlob< MR >.


|
pure virtualnoexcept |
Implemented in Mila::Dnn::Serialization::TensorBlob< MR >.

|
delete |

|
default |

|
pure virtualnoexcept |
Implemented in Mila::Dnn::Serialization::TensorBlob< MR >.

