diff options
Diffstat (limited to 'src/text_recognizer/networks/misc.py')
-rw-r--r-- | src/text_recognizer/networks/misc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/text_recognizer/networks/misc.py b/src/text_recognizer/networks/misc.py index cac9e78..1f853e9 100644 --- a/src/text_recognizer/networks/misc.py +++ b/src/text_recognizer/networks/misc.py @@ -34,6 +34,7 @@ def activation_function(activation: str) -> Type[nn.Module]: """Returns the callable activation function.""" activation_fns = nn.ModuleDict( [ + ["elu", nn.ELU(inplace=True)], ["gelu", nn.GELU()], ["leaky_relu", nn.LeakyReLU(negative_slope=1.0e-2, inplace=True)], ["none", nn.Identity()], |