Skip to content

Commit f2e15d6

Browse files
authored
add some annotations
1 parent 4ba9156 commit f2e15d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,15 @@ def main(datasets, U, n_epochs=20, batch_size=20, max_l=100, hidden_size=100, \
182182
rng = np.random.RandomState(r_seed)
183183
lsize, rsize = max_l, max_l
184184
sessionmask = T.matrix()
185-
lx = []
186-
lxmask = []
185+
lx = [] #tokens from previous turns
186+
lxmask = [] #masks from previous turns
187187
for i in range(max_turn):
188188
lx.append(T.matrix())
189189
lxmask.append(T.matrix())
190190

191191
index = T.lscalar()
192-
rx = T.matrix('rx')
193-
rxmask = T.matrix()
192+
rx = T.matrix('rx') #tokens from response
193+
rxmask = T.matrix() #masks from response
194194
y = T.ivector('y')
195195
Words = theano.shared(value=U, name="Words")
196196
llayer0_input = []

0 commit comments

Comments
 (0)