[에러 해결] RuntimeError: stack expects each tensor to be equal size, but got / resize
RuntimeError: stack expects each tensor to be equal size, but got return torch.stack(batch, 0, out=out)RuntimeError: stack expects each tensor to be equal size, but got [3, 512, 512] at entry 0 and [3, 768, 768] at entry 2RuntimeError: stack expects each tensor to be equal size, but got stack에서 모든 tensor size가 동일할 것을 요구했지만 다른 경우가 있을 수 있습니다. resize를 진행 class ImagePathDataset(torch.utils..