Skip to content
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

Mean or sum reduction #1

Open
FerranAlet opened this issue Jul 26, 2019 · 0 comments
Open

Mean or sum reduction #1

FerranAlet opened this issue Jul 26, 2019 · 0 comments

Comments

@FerranAlet
Copy link

In networ.py BCELoss has the default settings, which (looking both for pytorch1.1 and pytorch0.4) does the mean reduction. However, the KL divergence function (also in network.py) seems to be using the sum reduction. Intuitively, either both should be sum or both mean. Is this a bug or is this correct?

Thanks!

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

No branches or pull requests

1 participant