본문 바로가기

Welcome to Jiyuniverse

검색하기
Welcome to Jiyuniverse
프로필사진 JJiiyun

  • 분류 전체보기 (10)
    • Python (3)
      • GUI Framework (3)
    • ML, DL (5)
      • Naver BoostCourse (1)
      • Lg Aimers (1)
      • 논문 리뷰 (0)
    • Thoughts (2)
    • Reviews (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
  • matplotlib
  • 파이썬프레임워크
  • 딥러닝
  • channel
  • 라벨
  • PySide6
  • 파일 열기
  • perceptron
  • numpy
  • pytorch
  • 파이썬
  • propagation
  • 컴공
  • loss function
  • dl
  • 객체인식
  • 배치
  • GUI
  • TXT
  • MSE
  • 프레임워크
  • 컴퓨터비전
  • 대학생
  • Batch
  • 손실함수
  • 그래프
  • Plot
  • 데이터셋
  • tensor
  • 머신러닝
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Batch (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바