init projection_size as None
This commit is contained in:
parent
c21f05e307
commit
60fc4607d0
|
|
@ -42,6 +42,8 @@ class ComplexLSTM(nn.Module):
|
||||||
self.imag_linear = nn.Linear(
|
self.imag_linear = nn.Linear(
|
||||||
self.hidden_size * bidirectional, self.projection_size
|
self.hidden_size * bidirectional, self.projection_size
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
self.projection_size = None
|
||||||
|
|
||||||
def forward(self, input):
|
def forward(self, input):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue