Skip to content

Conversation

@yf225
Copy link
Contributor

@yf225 yf225 commented Jul 23, 2019

In Python, register_module / register_parameter / register_buffer method in nn.Module is public. This PR makes those APIs public for C++ nn::Module as well. Closes #23140.

@yf225 yf225 requested a review from soumith July 23, 2019 00:44
@pytorchbot pytorchbot added the module: cpp Related to C++ API label Jul 23, 2019
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.

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

@yf225 yf225 changed the title [C++ API] Make Module::register_module public [C++ API] Make Module::register_module / register_parameter / register_buffer public Jul 23, 2019
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.

@yf225 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.

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

@facebook-github-bot
Copy link
Contributor

@yf225 merged this pull request in 8a77098.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: cpp Related to C++ API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Module:: register_module public in the c++ frontend?

5 participants