您的位置:首页 > 编程语言 > Python开发

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

2019-03-25 21:15 1041 查看
版权声明:本文为博主原创文章,未经博主允许不得转载。 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}.

 

 

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐