|
Mila
Deep Neural Network Library
|
Archive open mode for model serializers. More...
#include <string_view>Namespaces | |
| namespace | Mila |
| Mila main API namespace. | |
Enumerations | |
| enum class | Mila::Dnn::Serialization::OpenMode { Read , Write } |
| Mode indicating whether the archive is used for reading or writing. More... | |
Functions | |
| constexpr std::string_view | Mila::Dnn::Serialization::archiveModeToString (OpenMode mode) |
| Convert ArchiveMode to string. | |
Archive open mode for model serializers.
Indicates whether an archive is intended for reading or writing; used to guard operations that are valid only in the corresponding mode.
|
exportstrong |
Mode indicating whether the archive is used for reading or writing.
Preconditions:
Semantics:
Example: