1.nn.LayerNorm()
nn.LayerNorm的实现及原理_harry_tea的博客-CSDN博客
pytorch LayerNorm参数详解,计算过程_拿铁大侠的博客-CSDN博客_torch.nn.layernorm
nn.LayerNorm的参数_饿了就干饭的博客-CSDN博客
出现了一个错误RuntimeError: “LayerNormKernelImpl“ not implemented for ‘Long‘。
解决方式:
RuntimeError: “LayerNormKernelImpl“ not implemented for ‘Long‘_沐辰光的博客-CSDN博客
2.einops.repeat()操作