Skip to content

Conversation

@gmagogsfm
Copy link
Contributor

@gmagogsfm gmagogsfm commented Aug 5, 2020

Returnning None rather than error matches previous behavior better.

Fixes https://fburl.com/yrrvtes3

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Aug 5, 2020
@gmagogsfm gmagogsfm marked this pull request as ready for review August 5, 2020 19:45
@gmagogsfm gmagogsfm requested a review from apaszke as a code owner August 5, 2020 19:45
@gmagogsfm gmagogsfm requested a review from SplitInfinity August 5, 2020 19:45
Copy link

@SplitInfinity SplitInfinity left a comment

Choose a reason for hiding this comment

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

I suggested using the warnings module instead because it is used in _recursive.py. I don't know enough about the details of logging libraries but I thought it would be a good idea to be consistent.

Consider also including information in the error message about how to enable experimental support (I remember seeing some env var you can set to do so).

Choose a reason for hiding this comment

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

Suggested change
import logging
import warnings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

I think most of the times (by default) logging.warning and warning.warn behave exactly the same, unless configured otherwise:

https://stackoverflow.com/a/37979724

And not prompting user to set the environment variable is on purpose, the feature isn't complete after all.

Choose a reason for hiding this comment

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

Suggested change
logging.warning("Enum support is work in progress, enum class {}"
warnings.warn("Enum support is work in progress, enum class {}"

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.

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

@facebook-github-bot
Copy link
Contributor

@gmagogsfm merged this pull request in 5d7c3f9.

@dr-ci
Copy link

dr-ci bot commented Aug 6, 2020

💊 CI failures summary and remediations

As of commit bb41447 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 1 time.

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

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants