PyTorch RuntimeError: 'mat1 and mat2 shapes cannot be multiplied' - GCN Model
This error occurs because the shapes of the matrices in the linear layer of the GCN model are incompatible for multiplication. The input matrix 'x' has a shape of 1x307200, and the weight matrix has a shape of 4800x64. These shapes cannot be multiplied together.
To fix this issue, you need to ensure that the dimensions of the input and weight matrices are compatible for multiplication. You can either reshape the input matrix or adjust the dimensions of the weight matrix.
原文地址: https://www.cveoy.top/t/topic/pbOb 著作权归作者所有。请勿转载和采集!