diff options
-rw-r--r-- | text_recognizer/networks/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text_recognizer/networks/util.py b/text_recognizer/networks/util.py index c94e8dc..6cf102f 100644 --- a/text_recognizer/networks/util.py +++ b/text_recognizer/networks/util.py @@ -13,7 +13,7 @@ def activation_function(activation: str) -> Type[nn.Module]: ["elu", nn.ELU(inplace=True)], ["gelu", nn.GELU()], ["glu", nn.GLU()], - ["leaky_relu", nn.LeakyReLU(negative_slope=1.0e-2, inplace=True)], + ["leaky_relu", nn.LeakyReLU(negative_slope=1.0e-2, inplace=False)], ["none", nn.Identity()], ["relu", nn.ReLU(inplace=True)], ["selu", nn.SELU(inplace=True)], |