diff options
author | Soumith Chintala <soumith@fb.com> | 2016-07-26 00:46:33 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@fb.com> | 2016-07-26 00:46:33 +0300 |
commit | f0bb562d745aef70f8fd2f2d9546dd7e9cbcb8c8 (patch) | |
tree | 299760ede637de5033f9a703fbb9fe7cea1971ab | |
parent | 289eebac6c879a08e92da0af15a78e1d3c83c2cb (diff) |
syntax fix
-rw-r--r-- | blog/_posts/2016-05-11-nce.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blog/_posts/2016-05-11-nce.md b/blog/_posts/2016-05-11-nce.md index 70a6bcb..7ab5fb5 100644 --- a/blog/_posts/2016-05-11-nce.md +++ b/blog/_posts/2016-05-11-nce.md @@ -385,7 +385,7 @@ local ncemodule = nn.NCEModule(inputsize, #trainset.ivocab, opt.k, unigram, opt. lm = nn.Sequential() :add(nn.ParallelTable() :add(lm):add(nn.Identity())) - :add(nn.ZipTable()) -- {{x1,x2,...}, {t1,t2,...}} -> {{x1,t1},{x2,t2},...} + :add(nn.ZipTable()) -- encapsulate stepmodule into a Sequencer lm:add(nn.Sequencer(nn.MaskZero(ncemodule, 1))) |