Configuration class for Softmax module.
More...
Configuration class for Softmax module.
Provides a type-safe fluent interface for configuring Softmax modules.
- Examples
- /__w/Mila/Mila/Mila/Src/Dnn/Components/Normalization/Softmax.ixx.
◆ fromMetadata()
◆ getAxis()
| int64_t Mila::Dnn::SoftmaxConfig::getAxis |
( |
| ) |
const |
|
inlinenoexcept |
◆ toMetadata()
◆ toString()
| std::string Mila::Dnn::SoftmaxConfig::toString |
( |
| ) |
const |
|
inlineoverridevirtual |
Get a string representation of the configuration.
- Returns
- std::string Human-readable representation
Implements Mila::Dnn::ComponentConfig.
◆ validate()
| void Mila::Dnn::SoftmaxConfig::validate |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ withAxis()
template<typename Self>
| Self && Mila::Dnn::SoftmaxConfig::withAxis |
( |
this Self && | self, |
|
|
int64_t | axis ) |
|
inline |
fluent setter for the axis along which to apply softmax.
- Parameters
-
| axis | Dimension for softmax computation (default: -1 for last dimension) |
- Returns
- Self&& for method chaining
◆ axis_
| int64_t Mila::Dnn::SoftmaxConfig::axis_ = -1 |
|
private |
The documentation for this class was generated from the following file: