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

Configuration interface for the Encoder module in the Mila DNN framework. More...

#include <stdexcept>
#include <string>
#include <utility>
#include <sstream>
import Dnn.TensorTypes;
import Dnn.ActivationType;
import Dnn.ComponentConfig;
import Serialization.Metadata;
import Dnn.Component;

Classes

class  Mila::Dnn::LpeConfig
 Configuration class for the Learned Positional Encoder. More...

Namespaces

namespace  Mila
 Mila main API namespace.

Detailed Description

Configuration interface for the Encoder module in the Mila DNN framework.

Defines the EncoderConfig class, providing a type-safe fluent interface for configuring Encoder modules. Inherits from ComponentConfig CRTP base and adds Encoder-specific options such as embedding dimension, number of heads, and feed-forward layer size.

Exposed as part of the Encoder module via module partitions.