Skip to content

Fixed issue with test_kwargs_loss #2242

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

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

vfdev-5
Copy link
Collaborator

@vfdev-5 vfdev-5 commented Oct 4, 2021

Fixes #2240

Description:

  • Fixed CI issue with test_kwargs_loss

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)

Description:
- Fixed CI issue with test_kwargs_loss
@sdesrozis
Copy link
Contributor

Switch to reduction sum works fine too

loss.update((y_pred, y, {"weight": torch.tensor([0, 0, 0], dtype=torch.float), "reduction": "sum"}))

@vfdev-5 vfdev-5 merged commit e597acd into pytorch:master Oct 4, 2021
@vfdev-5 vfdev-5 deleted the fix-ci-loss-kwargs-2240 branch October 4, 2021 13:43
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.

[CI] test loss with kwargs is broken on nightly
2 participants