|
Mila 0.13.48
Deep Neural Network Library
|
Minimal base interface for model serialization backends. More...

Public Member Functions | |
| virtual | ~Serializer ()=default |
| virtual bool | close ()=0 |
| Close the file. | |
| virtual const std::string & | getFilename () const noexcept=0 |
| Get the filename. | |
| virtual bool | isOpen () const noexcept=0 |
| Check if currently open. | |
| virtual bool | isOpenForRead () const noexcept=0 |
| Check if open for reading. | |
| virtual bool | isOpenForWrite () const noexcept=0 |
| Check if open for writing. | |
| virtual bool | open (const std::string &filename, OpenMode mode)=0 |
| Open a file for reading or writing. | |
Minimal base interface for model serialization backends.
Defines only the essential lifecycle operations common to all serializers. Derived classes implement format-specific APIs.
|
virtualdefault |
|
nodiscardpure virtual |
Close the file.
Implemented in Mila::Dnn::Serialization::ZipSerializer.
|
nodiscardpure virtualnoexcept |
Get the filename.
Implemented in Mila::Dnn::Serialization::ZipSerializer.


|
nodiscardpure virtualnoexcept |
Check if currently open.
Implemented in Mila::Dnn::Serialization::ZipSerializer.
|
nodiscardpure virtualnoexcept |
Check if open for reading.
Implemented in Mila::Dnn::Serialization::ZipSerializer.


|
nodiscardpure virtualnoexcept |
Check if open for writing.
Implemented in Mila::Dnn::Serialization::ZipSerializer.


|
nodiscardpure virtual |
Open a file for reading or writing.
Implemented in Mila::Dnn::Serialization::ZipSerializer.