SoftplusScale#
- class sdm.nn.SoftplusScale(channels: int, multiplier: float = 1.0, weight_init: float = 0.0, device: device | str | None = None, dtype: dtype | None = None)#
Bases:
ModuleApply a learned positive scale to the final input dimension.
Each channel is multiplied by a positive factor parametrized as
multiplier * softplus(weight).- Parameters: