clab / clab/dynet

Simple LSTM Cell interface

Open
#949 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
3.4k
Forks
701
PR merge metrics
No merged PRs in 30d

Description

I am adding a simple `LSTMCell` to dynet. It is a stateless LSTM unit that takes as input the current input `x_t` and previous state `(c_tm1, h_tm1)` and outputs `(c_t, h_t)`. This is similar to `nn.LSTMCell` in pytorch, and is useful in cases like beam search, where you need to dynamically keep the set of previous hidden states.

Details can be found [here](https://github.com/pcyin/dynet/compare/master...rnn_cell). I can do `RNNCell` and `GRUCell` as well is this is something useful to include in the official repo.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.