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

Is it necessary to use a vid2hid layer before the rnn cell? #23

Open
Nash2325138 opened this issue Dec 8, 2018 · 0 comments
Open

Is it necessary to use a vid2hid layer before the rnn cell? #23

Nash2325138 opened this issue Dec 8, 2018 · 0 comments

Comments

@Nash2325138
Copy link

Nash2325138 commented Dec 8, 2018

self.vid2hid = nn.Linear(dim_vid, dim_hidden)

As the title, why do we need another linear transform layer for video features when the rnn will do it inside the cell?

If it is to save the number of parameters, will it be better if we specify the rnn input dimension using another variable?
For instance:

self.vid2hid = nn.Linear(dim_vid, dim_rnn_input)
...
self.rnn = self.rnn_cell(dim_rnn_input, dim_hidden, n_layers, batch_first=True,
                         bidirectional=bidirectional, dropout=self.rnn_dropout_p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant