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

Skip to content

adds reduce argument to BCEWithLogitsLoss interface#4705

Merged
soumith merged 2 commits into
pytorch:masterfrom
albanie:bce_arg_fix
Jan 18, 2018
Merged

adds reduce argument to BCEWithLogitsLoss interface#4705
soumith merged 2 commits into
pytorch:masterfrom
albanie:bce_arg_fix

Conversation

@albanie
Copy link
Copy Markdown
Contributor

@albanie albanie commented Jan 17, 2018

Adds the missing reduce argument for the BCEWithLogitsLoss module
so that it matches the functional interface.

Adds the missing 'reduce' argument for the BCEWithLogitsLoss module
so that it matches the functional interface.
fixes the indentation used to update the BCEWithLogitsLoss module
and adds a unittest to sanity check its usage with `reduce=False`
@soumith
Copy link
Copy Markdown
Collaborator

soumith commented Jan 17, 2018

@pytorchbot test this please

@yf225
Copy link
Copy Markdown
Contributor

yf225 commented Jan 17, 2018

@pytorchbot retest this please

1 similar comment
@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Jan 18, 2018

@pytorchbot retest this please

@lucasb-eyer
Copy link
Copy Markdown
Contributor

Sweet, I was about to implement this, thank you @albanie !

@soumith soumith merged commit f072986 into pytorch:master Jan 18, 2018
@soumith
Copy link
Copy Markdown
Collaborator

soumith commented Jan 18, 2018

thanks @albanie !

@albanie albanie deleted the bce_arg_fix branch January 18, 2018 16:04
@soumith soumith added 0.3.1 and removed 0.3.1 labels Feb 5, 2018
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
* adds reduce arg to BCEWithLogitsLoss interface

Adds the missing 'reduce' argument for the BCEWithLogitsLoss module
so that it matches the functional interface.

* fix indentation and add additional test

fixes the indentation used to update the BCEWithLogitsLoss module
and adds a unittest to sanity check its usage with `reduce=False`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants