From 94e8420883b85ddbd8046c1991a09f34909426e8 Mon Sep 17 00:00:00 2001 From: paleboot Date: Wed, 19 May 2021 13:58:42 +0700 Subject: [PATCH] fix: disable signature check in override --- elmoformanylangs/modules/highway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elmoformanylangs/modules/highway.py b/elmoformanylangs/modules/highway.py index 934e51c..894945f 100644 --- a/elmoformanylangs/modules/highway.py +++ b/elmoformanylangs/modules/highway.py @@ -43,7 +43,7 @@ def __init__(self, # of the bias vector in each Linear layer. layer.bias[input_dim:].data.fill_(1) - @overrides + @overrides(check_signature=False) def forward(self, inputs: torch.Tensor) -> torch.Tensor: # pylint: disable=arguments-differ current_input = inputs for layer in self._layers: