首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
tech
2023-02-09
91
报错代码
criterion
=
nn
.
CrossEntropyLoss
(
)
.
to
(
device
)
loss
=
criterion
(
output
,
target
)
网上很多说criterion的第一个输入问题, 我的解决是改变batchsize 大小即可
转载请注明原文地址:https://tech.qufami.com/read-9519.html
最新回复
(
0
)