Repository navigation
Remove warnings in tf.losses.softmax_cross_entropy - #16837
Merged
martinwicke merged 1 commit intoFeb 8, 2018
Merged
martinwicke merged 1 commit into
martinwicke merged 1 commit into
Conversation
This fix tries to address the issue raised in 16534 where tf.losses.softmax_cross_entropy causes warnings due to the calling of tf.nn.softmax_cross_entropy_with_logits. This fix switches to tf.nn.softmax_cross_entropy_with_logits_v2 to remove the warning. This fix fixes 16534. Signed-off-by: Yong Tang <[email protected]>
Contributor
|
@martinwicke Would it make sense to make a tf.losses.softmax_cross_entropy_v2 to match the behavior? |
Member
|
@ebrevdo may know more. It may be useful, I'm not sure. |
martinwicke
requested review from
ebrevdo
and removed request for
martinwicke
February 7, 2018 21:01
Contributor
|
The current change LGTM. It makes sense to have a _v2 in losses as well;
but that could be in a separate PR.
…On Wed, Feb 7, 2018 at 1:24 PM, Jonathan Hseu ***@***.***> wrote:
Assigned #16837 <#16837> to
@ebrevdo <https://github.com/ebrevdo>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#16837 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABtimxMUzrOi9DPrzBR21kx2h9CFD4n-ks5tShSXgaJpZM4R8_rM>
.
|
martinwicke
approved these changes
Feb 8, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fix tries to address the issue raised in #16534 where tf.losses.softmax_cross_entropy causes warnings due to the calling of tf.nn.softmax_cross_entropy_with_logits.
This fix switches to tf.nn.softmax_cross_entropy_with_logits_v2 to remove the warning.
This fix fixes #16534.
Signed-off-by: Yong Tang [email protected]