summaryrefslogtreecommitdiff
path: root/text_recognizer/networks/util.py
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-09-30 23:06:54 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-09-30 23:06:54 +0200
commit58bff6b69287abffc8df481ba6fb5fec9a072054 (patch)
tree855fa5c442cb28c1ffc149a40366b8f9753ee52c /text_recognizer/networks/util.py
parenta6d6d50ba72556fcd3ca736e8c5a9bc59516cd32 (diff)
Set leaky relu inplace to false
Diffstat (limited to 'text_recognizer/networks/util.py')
-rw-r--r--text_recognizer/networks/util.py2
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)],