会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Xycdada
博客园
首页
新随笔
联系
订阅
管理
2020年10月16日
python报错:1only batches of spatial targets supported (non-empty 3D tensors) but got targets of size
摘要: 因为在使用Crossentropyloss作为损失函数时,output=net(input)的output应该是[batchsize, channel, height, weight],而label则是[batchsize, height, weight],label是单通道灰度图,而在BCELos
阅读全文
posted @ 2020-10-16 16:58 Xycdada
阅读(2170)
评论(0)
推荐(0)
编辑
公告