We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f7d884 commit ed02dd9Copy full SHA for ed02dd9
doc/rnnslu.txt
@@ -268,7 +268,7 @@ It gives the following code::
268
Then we integrate the way to build the input from the embedding matrix::
269
270
idxs = T.imatrix() # as many columns as context window size/lines as words in the sentence
271
- x, _ = theano.scan(fn=lambda idx: self.emb[idx].flatten(), sequences=idxs)
+ x = self.emb[idxs].reshape((idxs.shape[0], de*cs))
272
y = T.ivector('y') # label
273
274
We use the scan operator to construct the recursion, works like a charm::
0 commit comments