JavaShuo
欄目
標籤
TensorFlow tf.keras.losses.SparseCategoricalCrossentropy
時間 2020-07-10
標籤
tensorflow
tf.keras.losses.sparsecategoricalcrossentropy
keras
losses
sparsecategoricalcrossentropy
简体版
原文
原文鏈接
下面的例子,y_true的形狀是[batch_size],y_pred的形狀是[batch_size,num_class]. 也就是說y_pred通過softmax層以後,是one-hot編碼,SparseCategoricalCrossentropy將y_true變成了one-hot編碼.python cce = tf.keras.losses.SparseCategoricalCrossent
>>阅读原文<<
相關文章
1.
初探 TensorFlow 2.0
2.
tensorflow筆記第三講
3.
TensorFlow VS TensorFlow Mobile VS TensorFlow Lite
4.
將您的代碼從 TensorFlow 1 遷移到 TensorFlow 2(一)
5.
【Tensorflow】Python3.7安裝Tensorflow
6.
[Tensorflow] Practice - The Tensorflow Way
7.
[Tensorflow] Cookbook - The Tensorflow Way
8.
[TensorFlow] windows 安裝TensorFlow
9.
Tensorflow |(1)初識Tensorflow
10.
tensorflow與tensorflow-cpu、tensorflow-gpu區別
更多相關文章...
相關標籤/搜索
tensorflow
tensorflow&keras
tensorflow+keras
opencv+tensorflow
v4+tensorflow
anaconda3+tensorflow
tvm+tensorflow
ubuntu+tensorflow
3.tensorflow
7.6+tensorflow
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
部署Hadoop(3.3.0)僞分佈式集羣
2.
從0開始搭建hadoop僞分佈式集羣(三:Zookeeper)
3.
centos7 vmware 搭建集羣
4.
jsp的page指令
5.
Sql Server 2008R2 安裝教程
6.
python:模塊導入import問題總結
7.
Java控制修飾符,子類與父類,組合重載覆蓋等問題
8.
(實測)Discuz修改論壇最後發表的帖子的鏈接爲靜態地址
9.
java參數傳遞時,究竟傳遞的是什麼
10.
Linux---文件查看(4)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
1.
初探 TensorFlow 2.0
2.
tensorflow筆記第三講
3.
TensorFlow VS TensorFlow Mobile VS TensorFlow Lite
4.
將您的代碼從 TensorFlow 1 遷移到 TensorFlow 2(一)
5.
【Tensorflow】Python3.7安裝Tensorflow
6.
[Tensorflow] Practice - The Tensorflow Way
7.
[Tensorflow] Cookbook - The Tensorflow Way
8.
[TensorFlow] windows 安裝TensorFlow
9.
Tensorflow |(1)初識Tensorflow
10.
tensorflow與tensorflow-cpu、tensorflow-gpu區別
>>更多相關文章<<