티스토리 뷰
- tensor to list
m_list = m_tensor.tolist()
- list to tensor
m_tensor = torch.tensor(m_list)
- array to tensor
m_array = m_tensor.numpy()
- tensor to array
m_tensor = torch.tensor(m_array)
'프로그래밍 > 개발' 카테고리의 다른 글
[vscode] git commit과 push 동시에 하기 (0) | 2023.04.07 |
---|---|
[python] list, list in list 중복 제거 (0) | 2023.04.03 |
[Pytorch] tensor 특정 값 치환하기 (0) | 2023.03.20 |
[Pytorch] tensor 특정 값 치환하기 (0) | 2023.03.17 |
[python] 현재시간 불러오기 (0) | 2023.03.17 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 명령어
- pytorch
- uninstall
- 자료형
- gpu
- 자연어처리
- metric
- 포트포워딩
- 시나리오
- multiprocessing
- 알스트로메리아
- vsCode
- Git
- killall
- Process
- tensor
- kill
- linux
- Jupyter Notebook
- PYTHON
- nlp
- 중복 제거
- tqdm
- progress bar
- list
- install
- 개발
- PIP
- dockerfile
- Docker
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함