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

how to add lstm layer as meta learner #18

Open
boy-be-ambitious opened this issue Jul 20, 2019 · 2 comments
Open

how to add lstm layer as meta learner #18

boy-be-ambitious opened this issue Jul 20, 2019 · 2 comments

Comments

@boy-be-ambitious
Copy link

Most of maml code use cnn and use nn.functional to realize it. But sometimes we need lstm or other module which doesn't appear in nn.functional. I try to load net parameters repeatly in inner loop but the accuracy doesn't raise.

@AntreasAntoniou
Copy link
Owner

You would need to build an LSTM in the same flavour as the 'Meta' layers. This can be achieved by diving into the nn.LSTM layer and creating a new layer which has that functionality + can receive parameters to use for its internal functions.

@tk1363704
Copy link

You would need to build an LSTM in the same flavour as the 'Meta' layers. This can be achieved by diving into the nn.LSTM layer and creating a new layer which has that functionality + can receive parameters to use for its internal functions.

I am faced with the same problem but I can not understand what is 'diving into the nn.LSTM layer and creating a new layer which has that functionality + can receive parameters to use for its internal functions'.
If possible, could you please explain it more deeply, if it's not too much trouble. Cheers!

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

3 participants