RuntimeError: _thnn_nll_loss_forward not supported on CUDAType for Long 报错内容 解决方案 报错内容 解决方案 更改报错位置tensor的数据类型 loss = F.nll_loss(decoder_outputs.double(), target, ignore_index=config.num_sequence.PAD