-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Dynamic RNN without padding #1023
Conversation
TODO: example needed for Dynamic RNN in the documentation, changelog, unittest coverage |
do you mean, we can input a batch of text without using padding? or we provide a sequence length into the RNN? |
tensorlayer/layers/recurrent.py
Outdated
@@ -157,49 +158,104 @@ def build(self, inputs_shape): | |||
self._trainable_weights.append(var) | |||
|
|||
# @tf.function | |||
def forward(self, inputs, initial_state=None, **kwargs): | |||
def forward(self, inputs, actual_length=None, initial_state=None, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use sequence_length
?
*change to sequence_length |
Checklist
Motivation and Context
Description