成功解决softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_41185868/article/details/88806264

解决问题

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}.

解决思路

softmax_cross_entropy_with_logits 函数(来自tensorflow.python.ops.nn_ops)被弃用,将在未来版本中删除。

解决方法

更新说明:
在默认情况下,TensorFlow的未来主要版本将允许渐变流进反向传播标签输入。
请参阅@{tf.nn.softmax_cross_entropy_with_logits_v2}.

猜你喜欢

转载自blog.csdn.net/qq_41185868/article/details/88806264