Skip to content

Conversation

y0ast
Copy link
Contributor

@y0ast y0ast commented Feb 23, 2021

Follow up of #1674 and #1675

Add a test for the new detach behavior in the loss. This test only checks for non-failure, it doesn't check numerical correctness as that is expected to be tested elsewhere.

I verified manually that this test indeed fails before my previous PR.

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.

Thanks a lot @y0ast !

@vfdev-5 vfdev-5 merged commit d38c8bc into pytorch:master Feb 23, 2021
vfdev-5 added a commit that referenced this pull request Mar 1, 2021
* add test for new loss detach

* Update tests/ignite/metrics/test_loss.py

Co-authored-by: vfdev <vfdev.5@gmail.com>
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.

2 participants