전체 글18 RuntimeError: mat1 and mat2 shapes cannot be multiplied 오류 해결하기 pytorch에서 모델을 학습시킬 때 RuntimeError: mat1 and mat2 shapes cannot be multiplied 에러가 발생할 때가 있습니다. 이 오류는 선형 레이어의 가중치 행렬과 입력 행렬 간의 크기가 호환되지 않을 때 발생합니다. model = nn.Sequential( #데이터의 shape : (32,3,32,32) 2023. 12. 18. 1 2023. 12. 14. 이전 1 2 3 4 5 다음