天天看點

成功解決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}.

繼續閱讀