CrossEntropyLoss ()名字为交叉熵损失函数,不用于one_hotted编码形式. MSELoss()要求batch_x与batch_y的tensor都是FloatTensor类型.
確定! 回上一頁