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
- 컴퓨터비전
- channel
- 파이썬
- 배치
- loss function
- 파이썬프레임워크
- 프레임워크
- propagation
- PySide6
- dl
- perceptron
- 데이터셋
- TXT
- Plot
- 대학생
- 컴공
- 그래프
- GUI
- 라벨
- 파일 열기
- tensor
- MSE
- pytorch
- 손실함수
- numpy
- matplotlib
- 딥러닝
- 머신러닝
- Batch
- 객체인식
Archives
- Today
- Total
목록tensor (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