Skip to content
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

Support variable length inputs in RNNs #1183

Closed
unnonouno opened this issue May 16, 2016 · 2 comments
Closed

Support variable length inputs in RNNs #1183

unnonouno opened this issue May 16, 2016 · 2 comments
Labels
cat:feature Implementation that introduces new interfaces. stale Not updated for a longer period of time.

Comments

@unnonouno
Copy link
Member

cuDNN's RNN library supports variable length inputs. The RNN functions such as LSTM and GRU in chainer does not support that in native (users can support this feature with where function). Its specification is simple and useful, and it is required to keep compatibility with cuDNN's.

I write the detail below:

For example there are three input sequences, a, b and c:

  • a = [a1, a2, a3, a4]
  • b = [b1, b2, b3]
  • c = [c1]

where each element is a vector. These sequences need to be sorted by descending length.
A RNN function gets four variables, x1, x2, x3 and x4:

  • x1 = [a1, b1, c1]
  • x2 = [a2, b2]
  • x3 = [a3, b3]
  • x4 = [a4]
@unnonouno unnonouno added the cat:feature Implementation that introduces new interfaces. label May 24, 2016
@stale
Copy link

stale bot commented Oct 23, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Not updated for a longer period of time. label Oct 23, 2017
@stale
Copy link

stale bot commented Nov 22, 2017

This issue is closed as announced. Feel free to re-open it if needed.

@stale stale bot closed this as completed Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:feature Implementation that introduces new interfaces. stale Not updated for a longer period of time.
Projects
None yet
Development

No branches or pull requests

1 participant