Skip to content

Conversation

@aalok-sathe
Copy link

the keyword had a typo: 'weight' instead of 'weights'.
in case weights requires grads, it needs to be detached first as BCEwithlogits is not implemented for grad tracked tensor

the keyword had a typo: 'weight' instead of 'weights'.
in case weights requires grads, it needs to be detached first as BCEwithlogits is not implemented for grad tracked tensor
@bilzard bilzard mentioned this pull request Aug 17, 2021
@fcakyon
Copy link

fcakyon commented Dec 17, 2024

@aalok-sathe feel free to use this improved/fixed/battle-tested version, includes this fix and much more: https://github.com/fcakyon/balanced-loss#improvements

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