diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-09-30 23:06:54 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-09-30 23:06:54 +0200 |
commit | 58bff6b69287abffc8df481ba6fb5fec9a072054 (patch) | |
tree | 855fa5c442cb28c1ffc149a40366b8f9753ee52c /text_recognizer | |
parent | a6d6d50ba72556fcd3ca736e8c5a9bc59516cd32 (diff) |
Set leaky relu inplace to false
Diffstat (limited to 'text_recognizer')
-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)], |