Skip to content

Conversation

@goldsborough
Copy link
Contributor

Having circulated the C++ API a bit, I found that it would make it easier for folks to access module parameters directly than through the parameters() map. So here I make all variables/submodules and also the configuration options for every module public.

For RNNs, I also updated the names of parameters to match PyTorch, e.g. hhw -> w_hh. This should make it easier to transition from Python.

@apaszke @ebetica

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goldsborough has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goldsborough is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ezyang
Copy link
Contributor

ezyang commented Jul 3, 2018

So... are you going to jettison is<nn::Module> for a type refining method now? ;)

@goldsborough
Copy link
Contributor Author

@ezyang I see your point. I'll add something to do the cast

goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
Having circulated the C++ API a bit, I found that it would make it easier for folks to access module parameters directly than through the `parameters()` map. So here I make all variables/submodules and also the configuration options for every module public.

For RNNs, I also updated the names of parameters to match PyTorch, e.g. `hhw` -> `w_hh`. This should make it easier to transition from Python.

apaszke ebetica
Closes pytorch#9111

Differential Revision: D8717112

Pulled By: goldsborough

fbshipit-source-id: 3d36d5e161f7a86f44db7136c9c2fa53067abe1c
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

Successfully merging this pull request may close these issues.

4 participants