原文:ValueError: Only call `softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=..., ...)

在跑tensorflow事例時 python Users miao anaconda lib python . site packages tensorflow models image mnist convolutional.py 報如下錯誤 ValueError: Only call softmax cross entropy with logits with named arguments ...

2017-02-10 17:41 0 2128 推薦指數:

查看詳情

softmax_cross_entropy_with_logits

softmax_cross_entropy_with_logits 覺得有用的話,歡迎一起討論相互學習~ 函數定義 解釋 這個函數的作用是計算 logitssoftmax 函數激活之后的交叉熵。 對於每個獨立的分類任務,這個函數是去度量概率誤差 ...

Sun Aug 27 00:16:00 CST 2017 0 1708
sparse_softmax_cross_entropy_with_logits

sparse_softmax_cross_entropy_with_logits 覺得有用的話,歡迎一起討論相互學習~ 定義 說明 此函數大致與tf_nn_softmax_cross_entropy_with_logits的計算方式相同, 適用於每個類別相互獨立且排斥 ...

Sun Aug 27 00:28:00 CST 2017 0 6150
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM