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

What is getParameters() used for? #9

Open
ZhaofengWu opened this issue Feb 1, 2019 · 2 comments
Open

What is getParameters() used for? #9

ZhaofengWu opened this issue Feb 1, 2019 · 2 comments

Comments

@ZhaofengWu
Copy link

Looks like nowhere is that called.

@ttpro1995
Copy link
Owner

getParameters() is use to get weight matrix.

It is intend to override the function parameters() of any pytorch built-in model
(see PyTorch: Extract learned weights correctly )

In this code, getParameters() is useful if you want to visualize, or debug

@ttpro1995
Copy link
Owner

getParameters() call parameters() of each sub-module [self.ix, self.ih, self.fx, self.fh, self.ox, self.oh, self.ux, self.uh]

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

2 participants