Skip to content

Remove constants from DenseNet (#1721) #1907

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

Merged
merged 1 commit into from
Feb 25, 2020
Merged

Remove constants from DenseNet (#1721) #1907

merged 1 commit into from
Feb 25, 2020

Conversation

lutzroeder
Copy link
Contributor

@lutzroeder lutzroeder commented Feb 22, 2020

Fixes #1721:

~/python3.7/site-packages/torch/jit/_recursive.py:146: UserWarning: 'features' was found in ScriptModule constants, but it is a non-constant submodule. Consider removing it.

@fmassa @eellison #1727

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @lutzroeder !

I think this is fine, but I'm really not sure anymore what is __constants__ supposed to be doing, so I would like to have a second pair of eyes to look at this.

@eellison can you have a look?

@fmassa
Copy link
Member

fmassa commented Feb 25, 2020

Good to go according to @driazati

@fmassa fmassa merged commit 2160353 into pytorch:master Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UserWarning: 'layers' was found in ScriptModule constants
3 participants