Skip to content

Commit bc35cf6

Browse files
author
Hannes Gustafsson
authored
Update model.py
1 parent f392d83 commit bc35cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ def __init__(self, dim):
6363

6464
@tf.function
6565
def call(self, inputs):
66-
y = self.bidi_LSTM(inputs) # (..., seq_len, F)
66+
y = self.bidi_LSTM(inputs) # (..., seq_len, 2*dim)
6767

6868
if tf.shape(inputs)[1] % 2 == 1:
6969
y = tf.keras.layers.ZeroPadding1D(padding=(0, 1))(y)
7070

71-
y = tf.keras.layers.Reshape(target_shape=(-1, int(self.dim*4)))(y) # (..., seq_len//2, F*2)
71+
y = tf.keras.layers.Reshape(target_shape=(-1, int(self.dim*4)))(y) # (..., seq_len//2, 4*dim)
7272
return y
7373

7474
def LAS(dim, f_1, no_tokens):

0 commit comments

Comments
 (0)