Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MarcBresson
Copy link
Contributor

The same line was in reset() and init() which is unecessary.

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)

@github-actions github-actions bot added the module: metrics Metrics module label Aug 24, 2023
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.

LGTM, if mypy check wont complain

@MarcBresson
Copy link
Contributor Author

MarcBresson commented Aug 24, 2023

Do we even know why the kernel is recreated in the reset method ?

I think I removed it on the wrong line. It should only be called in init().

@MarcBresson MarcBresson marked this pull request as draft August 24, 2023 13:04
@vfdev-5
Copy link
Collaborator

vfdev-5 commented Aug 24, 2023

Yes, you are right, we do not need to recreate the kernel on reset.

@MarcBresson MarcBresson marked this pull request as ready for review August 24, 2023 13:16
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.

LGTM, thanks for the fix @MarcBresson !

@vfdev-5 vfdev-5 merged commit 86c2a1d into pytorch:master Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: metrics Metrics module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants