Skip to content

NLP: Seq2seq, LuongAttention, SimpleRNN, GRURNN, LSTMRNN #998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 47 commits into from
Jun 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
6401d54
add seq2seq model; add seq2seq test
May 25, 2019
1123fec
Revert "add seq2seq model; add seq2seq test"
May 25, 2019
07c91f8
UNDO last commit
May 25, 2019
e1ab432
Print list instead of tensor
May 25, 2019
ae87ed7
Add comments
May 31, 2019
b83ca22
ADD batch testing at Inference
May 31, 2019
3c8225f
ADD batch testing at Inference
May 31, 2019
50feb74
FIX typo and ADD some comments
May 31, 2019
e076456
FIX the Travis CI build
May 31, 2019
5608328
ADD attention-based seq2seq model
Jun 5, 2019
ac177a9
ADD comments
Jun 5, 2019
ae34f96
add seq2seq model; add seq2seq test
May 25, 2019
d43b785
rebase
Jun 6, 2019
2a3ddb1
FIX the Travis CI build
May 31, 2019
bb5675e
ADD attention-based seq2seq model
Jun 5, 2019
58777c9
ADD comments
Jun 5, 2019
372e31f
Resolve problems
Jun 6, 2019
496cd7f
Resolve problems
Jun 6, 2019
35a475f
resolve
Jun 6, 2019
b5ed4b9
FIX bug
Jun 6, 2019
4fa47bc
FIX bugs
Jun 6, 2019
417c082
nlp: mask for target sequence: refactored, tested, doc updated
JingqingZ Jun 3, 2019
aff7804
doc update and bug fix
JingqingZ Jun 6, 2019
34e9cd3
doc update
JingqingZ Jun 6, 2019
a0e23c3
Rewrite sequence testing
Jun 6, 2019
02d42bd
Remove conf.py and index.rst
Jun 6, 2019
6776e56
FIX yapf
Jun 7, 2019
0872d08
delete make.bat
Jun 9, 2019
e3a5ee5
delete make.bat
Jun 9, 2019
0cd529a
Merge branch 'master' into attention
zsdonghao Jun 9, 2019
43bf2c2
CHANGE_NAME
Jun 9, 2019
d39ce47
CHANGE_NAME
Jun 9, 2019
7efc6a4
Merge branch 'attention' of https://github.com/tensorlayer/tensorlaye…
Jun 9, 2019
6d6abd9
simplernn class implemented, tested and documented
JingqingZ Jun 11, 2019
829544e
GRURNN class implemented, tested, documented
JingqingZ Jun 11, 2019
ad88f16
LSTMRNN class implemented, tested, documented
JingqingZ Jun 11, 2019
7db99cf
merge master to nlp
JingqingZ Jun 12, 2019
9cb4d9c
Merge branch 'nlp' into attention
JingqingZ Jun 12, 2019
8f87b0c
Merge branch 'attention' into nlp
JingqingZ Jun 12, 2019
db4c275
format fix
JingqingZ Jun 12, 2019
2bc0ab2
update changlog
JingqingZ Jun 12, 2019
c35128a
yapf fix unittest of recurrent
JingqingZ Jun 12, 2019
1993356
format fix for recurrent
JingqingZ Jun 12, 2019
99d7079
doc fix
JingqingZ Jun 12, 2019
da0327b
fix doc rst
JingqingZ Jun 12, 2019
7e7e0af
Merge branch 'master' into nlp
zsdonghao Jun 13, 2019
e72a928
Merge branch 'master' into nlp
JingqingZ Jun 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ To release a new version, please update the changelog as followed:
- Add version_info in model.config. (PR #992)
- Replace tf.nn.func with tf.nn.func.\_\_name\_\_ in model config.
- Add Reinforcement learning tutorials. (PR #995)
- Add RNN layers with simple rnn cell, GRU cell, LSTM cell. (PR #998)
- Update Seq2seq (#998)
- Add Seq2seqLuongAttention model (#998)

### Fixed

Expand All @@ -100,20 +103,21 @@ To release a new version, please update the changelog as followed:
- @Tokarev-TT-33: #995
- @initial-h: #995
- @Officium: #995
- @ArnoldLIULJ: #998
- @JingqingZ: #998


## [2.0.2] - 2019-6-5

### Changed
- change the format of network config, change related code and files; change layer act (PR #980)
- update Seq2seq (#989)

### Fixed
- Fix dynamic model cannot track PRelu weights gradients problem (PR #982)
- Raise .weights warning (commit)

### Contributors
- @warshallrho: #980
- @ArnoldLIULJ: #989
- @1FengL: #982

## [2.0.1] - 2019-5-17
Expand Down
23 changes: 21 additions & 2 deletions docs/modules/layers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,15 @@ Layer list
SwitchNorm

RNN
SimpleRNN
GRURNN
LSTMRNN
BiRNN

retrieve_seq_length_op
retrieve_seq_length_op2
retrieve_seq_length_op3
target_mask_op

Flatten
Reshape
Expand Down Expand Up @@ -579,6 +583,18 @@ RNN layer
""""""""""""""""""""""""""
.. autoclass:: RNN

RNN layer with Simple RNN Cell
""""""""""""""""""""""""""""""""""
.. autoclass:: SimpleRNN

RNN layer with GRU Cell
""""""""""""""""""""""""""""""""""
.. autoclass:: GRURNN

RNN layer with LSTM Cell
""""""""""""""""""""""""""""""""""
.. autoclass:: LSTMRNN

Bidirectional layer
"""""""""""""""""""""""""""""""""
.. autoclass:: BiRNN
Expand All @@ -593,13 +609,16 @@ Compute Sequence length 1
.. autofunction:: retrieve_seq_length_op

Compute Sequence length 2
""""""""""""""""""""""""""
"""""""""""""""""""""""""""""
.. autofunction:: retrieve_seq_length_op2

Compute Sequence length 3
""""""""""""""""""""""""""
""""""""""""""""""""""""""""
.. autofunction:: retrieve_seq_length_op3

Compute mask of the target sequence
"""""""""""""""""""""""""""""""""""""""
.. autofunction:: target_mask_op



Expand Down
14 changes: 14 additions & 0 deletions docs/modules/models.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ TensorLayer provides many pretrained models, you can easily use the whole or a p
VGG19
SqueezeNetV1
MobileNetV1
Seq2seq
Seq2seqLuongAttention


Base Model
-----------
Expand All @@ -37,3 +40,14 @@ MobileNetV1
----------------

.. autofunction:: MobileNetV1

Seq2seq
------------------------

.. autoclass:: Seq2seq


Seq2seq Luong Attention
------------------------

.. autoclass:: Seq2seqLuongAttention
Loading