分享

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

 处女座的程序猿 2021-09-28

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


解决问题

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

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多