Skip to content
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

fix issue 918 #919

Merged
merged 3 commits into from Apr 14, 2020
Merged

fix issue 918 #919

merged 3 commits into from Apr 14, 2020

Conversation

sdesrozis
Copy link
Contributor

@sdesrozis sdesrozis commented Apr 14, 2020

Fixes #918

Description:

handlers could have optional engine argument. Events with filters use wrapper around handler. Signature of handler is used to check if engine is optional. However, wrappers wasn't built wrt handler signature.

Remark : I don't understand why that was working so far. There are plenty of tests using event filters...

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

@sdesrozis sdesrozis requested a review from vfdev-5 April 14, 2020 12:23
@vfdev-5
Copy link
Collaborator

vfdev-5 commented Apr 14, 2020

@sdesrozis please, add tests of the bug case

@sdesrozis
Copy link
Contributor Author

@sdesrozis please, add tests of the bug case

Sorry, I didn't commit the test !

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks Sylvain !

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Apr 14, 2020

@vfdev-5 vfdev-5 merged commit 10fd602 into pytorch:master Apr 14, 2020
@sdesrozis sdesrozis deleted the issue-918 branch April 14, 2020 14:25
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.

Handler without engine raises error on filtered events
2 participants