에러 해결 Tips 3

WSL 설치 failed with error: 0x80370102 해결하기

WSL 설치 중 만난 에러 코드 0x80370102 [STATUS] 1) 설정 > windows 기능 켜기/끄기 에서Hyper-V 관리 도구 하위 기능을 보면, Hyper-V 하이퍼바이저 체크가 안 됐다. ' Hyper-V를 설치할 수 없습니다. 펌웨어에서 가상화 지원을 사용할 수 없습니다.' 에러 2) powershell에서도 systeminfo 확인해보니 가상화가 unenabled [원인]BIOS 에서 가상화 unenabled [해결방법]1) 설정 > windows 기능 켜기/끄기 - Hyper-V 관리 도구 (하위 기능 모두 체크) - 가상머신 플랫폼 - Linux용 Windows 하위 시스템3가지 체크 되었는지 확인 변경 시 재부팅 필요 2) BIOS 설정 > CPU 가상화 활성화 하기B..

에러 해결 Tips 2025.04.23

[에러 해결 / pytorch] RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same

개발환경 - windows 10 - python 3.9.7 - pytorch 1. Problem RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same Input type과 weight type 이 같아야 한다는 Runtime Error 2. Reason GPU 학습 시, model이나 dataset을 GPU 에 할당하지 않았기 때문에 발생합니다. 3. Solution model을 GPU에 올리는 코드 device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') model.to(device) dataset을..

에러 해결 Tips 2023.05.17