关于pytorch在训练模型时常见错误

文章目录

      • 关于pytorch在训练模型时常见错误
        • 问题1 Expected hidden[0] size (2, 32, 256), got [2, 14, 256]`
        • 问题2 1D target tensor expected, multi-target not supported`
        • 问题3 too many values to unpack (expected 2,3......)
        • 问题4 np转int
        • 问题5 unhashable type: 'numpy.ndarray
        • 问题6 CUDA error: device-side assert triggered CUDA kernel errors
        • 问题7 grad can be implicitly created only for scalar outputs

你可能感兴趣的:(NLP,nlp,训练,pytorch,python)