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

Repair the loss parameter #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hwmaybe
Copy link

@hwmaybe hwmaybe commented Oct 27, 2020

The choices for the parameter reduction of the function torch.nn.functional.binary_cross_entropy_with_logits in pytorch 0.4.1 are 'none'|‘elementwise_mean’ | ‘sum’. But the choice in the master code is 'mean'. It will cause ValueError: Input contains NaN, infinity or a value too large for dtype('float32').

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.

1 participant