RuntimeError mat1 dim 1 must match mat2 dim 0RuntimeError: mat1 dim 1 must match mat2 dim 0
RuntimeError: mat1 dim 1 must match mat2 dim 0代码self.fc1 = nn.Linear(128, 120)self.fc2 = nn.Linear(120, 84)假设forward中要依次执行fc1和fc2fc1的out_features 等于fc2的in_features就不会有错误,这里都是120不会有错误反之self.fc1 = nn.Linear(128, 121)self.fc2 = nn.Linear(120, 84)则出