practical-pytorch icon indicating copy to clipboard operation
practical-pytorch copied to clipboard

What does each S, B, N mean?

Open hyeseonko opened this issue 6 years ago • 1 comments

Hi, I am implementing seq2seq attention mechanism with using different input and output (not machine translation).

But when I apply your code into mine, there's dimension error.. so I want to know what S, B, N means.. so that I can figure out how to fix my code.

Thank you so much for reading this question. Hope that I can get a reply Thanks,

Hyeseon

hyeseonko avatar May 02 '18 19:05 hyeseonko

In general, I thought it would be

S: sequence length B: batch size N: embedding size or hidden layer size (i.e. number of RNN cells in a hidden layer)

zyxue avatar May 28 '18 17:05 zyxue