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
- pytorch
- docker
- 차원 감소
- nn.Module
- excel
- Linear algebra
- 벡터 간 유사도
- 선형대수
- py4e
- 상호 정보량
- skip-gram
- 동시발생 행렬
- object detaction
- 시소러스
- pythonForEverybody
- Gated Recurrent Unit
- Multi-Layer Perceptron
- Long Short Term Memory
- deep learning
- mlops
- GoogLeNet
- Charlse Severance
- CBOW
- 분포 가설
- convolution
- 1x1 Convolution
- dl
- f1-score
- 파이썬
- Python
Archives
- Today
- Total
Tech & TIL
torch.tensor와 torch.Tensor 차이 본문
Pytorch는 tensor가 모든 것의 기본 구성 요소이다. 하지만 공식 문서를 읽어보면 torch.tensor와 torch.Tensor가 있다. 둘의 차이점은 무엇일까?
- torch.Tensor
- Class
- int 입력시 float으로 변환
- torch 데이터 입력시 입력 받은 데이터의 메모리 공간을 사용
- list, numpy 데이터 입력 시 입력 받은 데이터를 복사하여 새롭게 torch.Tensor를 만든 후 사용
- torch.tensor
- Function
- int 입력시 int 그대로
- 입력 받은 데이터를 새로운 메모리 공간으로 복사 후 사용
'Boostcamp - AI tech > PyTorch' 카테고리의 다른 글
| [PyTorch] torch.nn.Module (0) | 2021.08.21 |
|---|---|
| 02 - 개발자 공식문서 활용하기 (1) | 2021.08.20 |
| 01 - PyTorch 소개 (0) | 2021.08.17 |
Comments