Skip to content

Remove warnings in tf.losses.softmax_cross_entropy - #16837

Merged
martinwicke merged 1 commit into
tensorflow:masterfrom
yongtang:16534-tf.losses.softmax_cross_entropy
Feb 8, 2018
Merged

martinwicke merged 1 commit into
tensorflow:masterfrom
yongtang:16534-tf.losses.softmax_cross_entropy

Conversation

@yongtang

@yongtang yongtang commented Feb 7, 2018

Copy link
Copy Markdown
Member

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]

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]>
@jhseu

jhseu commented Feb 7, 2018

Copy link
Copy Markdown
Contributor

@martinwicke Would it make sense to make a tf.losses.softmax_cross_entropy_v2 to match the behavior?

@martinwicke

Copy link
Copy Markdown
Member

@ebrevdo may know more. It may be useful, I'm not sure.

@martinwicke
martinwicke requested review from ebrevdo and removed request for martinwicke February 7, 2018 21:01
@jhseu jhseu assigned ebrevdo and unassigned martinwicke Feb 7, 2018
@ebrevdo

ebrevdo commented Feb 7, 2018 via email

Copy link
Copy Markdown
Contributor

@martinwicke
martinwicke merged commit 0900f5c into tensorflow:master Feb 8, 2018
@yongtang
yongtang deleted the 16534-tf.losses.softmax_cross_entropy branch February 8, 2018 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

warning with tf.losses.softmax_cross_entropy

5 participants