Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- 머신러닝 딥러닝
- 푸리에
- inductive learning
- transductive
- inductive transductive
- Machine Learning
- dlib 설치
- python패키지설치
- 피티이
- 푸리에 변환
- Fourier
- rnn
- fourier transform
- 기초머신러닝
- continous deployment
- fourier 변환
- python2 python3
- python버전 동시 사용
- 푸리에변환이란
- docker commands
- 머신러닝
- 서버 os
- inductive
- 크롤링할때 중요한것
- virtual env
- transductive learning
- 로컬에서 서버
- 크롤링 주의사항
- 서버로 파일 복사
- rnn구현
Archives
- Today
- Total
목록ERROR_SOLUTION/PYTORCH (1)
우당탕탕 도비의 코딩로그
[Pytorch] IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1) 해결하기
더보기 nn.CosineEmbeddingLoss(x_1, x_2, y) 를 불러올때 batch_size가 1인 경우에는 각각 x_1, x_2, y tensor들의 shape 을 정의해주니 해결되었다. 나의 경우에는 tensor의 shape이 [1,64] 이어서 x_1.reshape(1,64) x_2.reshape(1,64) y.reshape(1,64) 로 각각 정의해주었다.
ERROR_SOLUTION/PYTORCH
2021. 2. 26. 21:52