RuntimeError1D tensors expected but got 2D and 2D tensors @ matmul 矩阵乘法报错修复

这个报错不是 @或者 matmul 本身不能做二维矩阵相乘,而是你把 @、matmul 放到了只能接收一维张量的 API 里面,比如 torch dot、to