Skip to content

[C++ Frontend] Do a better job of checking registered names#13016

Closed
goldsborough wants to merge 3 commits intopytorch:masterfrom
goldsborough:check-names
Closed

[C++ Frontend] Do a better job of checking registered names#13016
goldsborough wants to merge 3 commits intopytorch:masterfrom
goldsborough:check-names

Conversation

@goldsborough
Copy link
Copy Markdown
Contributor

@goldsborough goldsborough commented Oct 23, 2018

We currently don't check names in register_module and register_parameter as thoroughly as we do in Python. This PR fixes this.

Python checks are e.g. in https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/module.py#L108

@ezyang @ebetica @apaszke

@goldsborough goldsborough requested a review from ebetica as a code owner October 23, 2018 22:58
@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Oct 23, 2018

Can you link to the relevant Python code?

This comment was marked as off-topic.

Copy link
Copy Markdown
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.

@goldsborough goldsborough deleted the check-names branch October 25, 2018 21:32
@ezyang ezyang added the merged label Jun 25, 2019
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
We currently don't check names in `register_module` and `register_parameter` as thoroughly as we do in Python. This PR fixes this.

Python checks are e.g. in https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/module.py#L108

ezyang ebetica apaszke
Pull Request resolved: pytorch#13016

Differential Revision: D10853800

Pulled By: goldsborough

fbshipit-source-id: 765357875e90a5046e72351a7a47a86511633ab6
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.

3 participants