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 |
Tags
- Apple
- pytorch
- 자격증
- Anaconda
- torch
- ubuntu
- 기사 실기
- 국가자격증
- Logitech
- 실기시험
- coding
- Python
- 파이토치
- 정보처리
- NCS
- 기사시험
- 파이썬
- 2020정보처리기사
- DEEPLEARNING
- 정보처리기사
- 정보처리기사 실기
- 큐넷
- 로지텍
- 딥러닝
- qnet
- 실기
- 우분투
- 코딩
- keyboards
- python3
Archives
- Today
- Total
dhwiii's notepad | 딥 러닝, 코덱 일기장
[파이썬 에러코드] invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()` in C++ to convert a 0-dim tensor to a number 본문
■ Working Draft/◎ 에러코드 일기장
[파이썬 에러코드] invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()` in C++ to convert a 0-dim tensor to a number
dhwiii 2021. 5. 9. 20:34invalid index of a 0-dim tensor. Use `tensor.item()` in Python or `tensor.item<T>()` in C++ to convert a 0-dim tensor to a number
tensor에 관련된 오류이다.
tensor.data[0]와 같이 되어있는 구조를
tensor.item() 으로 바꾸어 주거나 [0]을 지워주도록 하자.
'■ Working Draft > ◎ 에러코드 일기장' 카테고리의 다른 글
Comments