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
- loss function
- PySide6
- dl
- 컴퓨터비전
- 머신러닝
- 배치
- TXT
- 객체인식
- 손실함수
- propagation
- matplotlib
- 데이터셋
- channel
- Batch
- 대학생
- 프레임워크
- 컴공
- tensor
- perceptron
- 파이썬
- pytorch
- MSE
- numpy
- 파일 열기
- 그래프
- GUI
- 딥러닝
- 파이썬프레임워크
- 라벨
- Plot
Archives
- Today
- Total
목록channel (1)
Welcome to Jiyuniverse
[pytorch] torch.rand() 함수, 텐서 크기
torch.rand(), torch.randint() PyTorch에서 0과 1 사이의 랜덤한 숫자로 이루어진 텐서를 생성하는 함수 import torchx = torch.rand(3, 4)print(x)#출력tensor([[0.7451, 0.2853, 0.5768, 0.9132], [0.1235, 0.6674, 0.8315, 0.4291], [0.3927, 0.8241, 0.1483, 0.9138]]) torch.rand(행, 열) -> (3x4) 크기의 랜덤 텐서를 생성한 코드이다. 모든 값이 0 이상 1 미만인 실수형(float32)이다. torch.randint(low, high, size)를 사용하면 low 이상 high 미만의 정수형 랜덤 텐서를 생성한다. torch...
ML, DL
2025. 2. 6. 18:51