Skip to content

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