minigo icon indicating copy to clipboard operation
minigo copied to clipboard

softmax_cross_entropy_with_logits deprecated

Open artasparks opened this issue 8 years ago • 7 comments

Noticed while running tests

WARNING:tensorflow:From /Users/jhoak/inprogress/minigo/dual_net.py:274: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.
Instructions for updating:

Future major versions of TensorFlow will allow gradients to flow
into the labels input on backprop by default.

See tf.nn.softmax_cross_entropy_with_logits_v2.

artasparks avatar Feb 01 '18 22:02 artasparks

I think this just started showing up in tensorflow-1.5.0

artasparks avatar Feb 01 '18 22:02 artasparks

What should be used instead?

mightypirate1 avatar Feb 05 '18 23:02 mightypirate1

@mightypirate1 it looks like tf.nn.softmax_cross_entropy_with_logits_v2

amj avatar Feb 06 '18 00:02 amj

If we do not change it, does the network still work properly?

weedwind avatar Feb 17 '18 01:02 weedwind

it works fine with the existing version, yes.

amj avatar Feb 17 '18 01:02 amj

Fixed via https://github.com/tensorflow/minigo/pull/149

nealwu avatar Apr 27 '18 18:04 nealwu

so,how can i resolve this question??

x-bessie avatar Sep 29 '18 06:09 x-bessie