我想在PyTorch 中编写一个简单的自动编码器并使用BCELoss ,但是,我得到了NaN, ... input * target + (1 + neg_abs.exp()).log() return loss.mean(). 智能推荐.
確定! 回上一頁