Skip to content

Conversation

@vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Aug 15, 2022

Description:

  • terminate() work on all events, called on catched _EngineTerminateException
  • terminate_epoch() work on iteration-based events, called on catched _EngineTerminateSingleEpochExpection
  • Fixed issue when attaching handlers on Events.TERMINATE_SINGLE_EPOCH
  • Added tests

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)

@sadra-barikbin can you please review and comment out what do you think ?

…xception

- terminate_epoch work on iteration-based events, called on catched  _EngineTerminateSingleEpochExpection
- Fixed issue when attaching handlers on Events.TERMINATE_SINGLE_EPOCH
@github-actions github-actions bot added the module: engine Engine module label Aug 15, 2022
@vfdev-5 vfdev-5 requested a review from sadra-barikbin August 16, 2022 07:29
@vfdev-5 vfdev-5 requested a review from sadra-barikbin August 16, 2022 21:00
@vfdev-5
Copy link
Collaborator Author

vfdev-5 commented Aug 18, 2022

@sadra-barikbin do you have any other remarks for this PR that could be blocking it for being merged ?

@sadra-barikbin
Copy link
Collaborator

@sadra-barikbin do you have any other remarks for this PR that could be blocking it for being merged ?

I finalize my review in a few minutes.

@vfdev-5
Copy link
Collaborator Author

vfdev-5 commented Aug 18, 2022

I finalize my review in a few minutes.

@sadra-barikbin have you submitted your review ?

@vfdev-5 vfdev-5 force-pushed the rewrite-engine-terminate-and-co branch from 20ee6a9 to d350ff5 Compare August 22, 2022 20:50
@vfdev-5
Copy link
Collaborator Author

vfdev-5 commented Aug 22, 2022

@sadra-barikbin I updated the docs and tests etc. Please review it again. I want to merge it by tomorrow. Thanks

@vfdev-5 vfdev-5 merged commit 32ba9cd into pytorch:master Aug 23, 2022
@vfdev-5 vfdev-5 deleted the rewrite-engine-terminate-and-co branch August 23, 2022 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: engine Engine module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants