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
- paramiko
- windows forms
- 채보
- 핑거스타일
- label
- Visual Studio
- Docker
- mysql
- Python
- error
- pytorch
- YOLO
- nvidia-smi
- C
- JSON
- C++
- SSH
- 컨테이너
- 프로그래머스
- pip
- VS Code
- Linux
- 기타 연주
- Selenium
- ubuntu
- OpenCV
- 오류
- C#
- pandas
- Numpy
Archives
- Today
- Total
목록numpy.ndarrays is extremely slow (1)
기계는 거짓말하지 않는다
PyTorch 경고 Creating a tensor from a list of numpy.ndarrays is extremely slow
Creating a tensor from a list of numpy.ndarrays is extremely slow.Please consider converting the list to a single numpy.ndarray with numpy.array()before converting to a tensor.PyTorch에서 List에 다수의 numpy.ndarray가 있을 경우 torch.tensor로 변환하는 경우 발생한다.이렇게 하면 성능이 저하될 수 있고, List를 단일 numpy.ndarray로 변환 후 tensor로 다시 변환하여야 한다.import numpy as npimport torchdef convert_to_tensor(list_of_arrays): # 리스트를 numpy..
AI
2024. 7. 18. 19:18