Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
SerializationMetadata.ixx File Reference

Type-safe metadata container for component serialization. More...

#include <string>
#include <vector>
#include <map>
#include <variant>
#include <optional>
#include <stdexcept>
#include <format>
#include <cstdint>
#include <memory>
import Dnn.TensorTypes;
import nlohmann.json;

Classes

 Type-safe metadata container for component serialization. More...

Namespaces

namespace  Mila
 Mila main API namespace.

Typedefs

using Mila::Dnn::Serialization::MetadataValue
 Type-safe metadata value supporting common serialization types.

Detailed Description

Type-safe metadata container for component serialization.

Abstracts serialization format (JSON, XML, binary, etc.) from user code. Provides fluent API for common metadata patterns used in component save/load.

Typedef Documentation

◆ MetadataValue

Initial value:
std::variant<
std::string,
int64_t,
double,
bool,
std::vector<int64_t>,
std::vector<double>,
std::vector<std::string>
>

Type-safe metadata value supporting common serialization types.

Encapsulates primitive types, strings, and structured data without exposing the underlying serialization format to user code.