DeepQA icon indicating copy to clipboard operation
DeepQA copied to clipboard

If we use dynamic rnn encorder do we still need to use the bucket model?

Open shamanez opened this issue 7 years ago • 3 comments

shamanez avatar Jun 02 '17 07:06 shamanez

Dynamic RNN allows the model to have variable sentence lengths​. Bucketing allow to efficiently minimize the padding within each batch. Those are two different complementary things.

Conchylicultor avatar Jun 04 '17 15:06 Conchylicultor

Oh I get it. So if we use dynamic RNN encoder without bucketing dynamic rnn function will padded the input to a fixed size right?

shamanez avatar Jun 05 '17 14:06 shamanez

The inputs will be padded to the longest sentence of the current batch. I think that with recent versions of tensorflow, there was a way to automatically handle padding and bucketing.

Conchylicultor avatar Jun 06 '17 12:06 Conchylicultor