|
Mila
Deep Neural Network Library
|
Definition of connection function types used by the Mila DNN library. More...
#include <string>#include <stdexcept>Namespaces | |
| namespace | Mila |
| Mila main API namespace. | |
Enumerations | |
| enum class | Mila::Dnn::ConnectionType { Addition } |
| Connection types supported by residual and skip-connection components. More... | |
Functions | |
| std::string | Mila::Dnn::connectionTypeToString (ConnectionType type) |
| Converts a ConnectionType enum value to its string representation. | |
| ConnectionType | Mila::Dnn::stringToConnectionType (const std::string &name) |
| Converts a string to its corresponding ConnectionType enum value. | |
Definition of connection function types used by the Mila DNN library.
|
exportstrong |
Connection types supported by residual and skip-connection components.
Defines how the input and transformed output are combined in residual and skip-connection architectures.
Currently only Addition is implemented. Other types (multiplication, concatenation) may be added in the future.
| Enumerator | |
|---|---|
| Addition | Element-wise addition (y = x + F(x)). |
|
inlineexport |
Converts a ConnectionType enum value to its string representation.
| type | The ConnectionType to convert |
Example:
|
inlineexport |
Converts a string to its corresponding ConnectionType enum value.
| name | The string representation of a connection type |
| std::invalid_argument | if the string doesn't match any known connection type |
Example: