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
- 파이토치
- 딥러닝
- qnet
- 코딩
- 로지텍
- NCS
- 정보처리
- Apple
- ubuntu
- coding
- 기사 실기
- 파이썬
- 정보처리기사
- 2020정보처리기사
- DEEPLEARNING
- 기사시험
- python3
- 실기
- 우분투
- 정보처리기사 실기
- 자격증
- keyboards
- 큐넷
- Logitech
- Anaconda
- Python
- 실기시험
- pytorch
- 국가자격증
- torch
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