¡Hola, Mundo!

  • 홈
  • 태그
  • 방명록

randint 3

rand, rand_like, randint, randint_like, randn, randn_like

rand It returns a tensor filled with Random floats from a uniform distribution on the interval [0, 1]. Uniform distribution on [0, 1] means : Every number between 0 and 1 has an equal probability of being selected. It doesn't mean the numbers will be evenly spaced or look "uniform" when you look at a few samples. For example, torch.rand(4)=> tensor([0.7529, 0.8579, 0.6870, 0.0051]) Each of these..

Deep Learning/PyTorch 2026.01.19

numpy-random

sample_size = 10000 rand=np.random.rand(sample_size) randn=np.random.randn(sample_size) randint=np.random.randint(low=10, high=15, size=10) random_integers=np.random.random_integers(1, 6, 10) pdf, bins, patches = plt.hist(rand, bins=20, range=(0, 1), density=True) plt.title('rand') plt.show() pdf, bins, patches = plt.hist(randn, bins=20, range=(-4, 4), density=True) plt.title('randn') plt.show()..

Analyze Data/Python Libraries 2022.12.29

randint, scatter_ VS scatter, log_softmax, nll_loss, cross_entropy

randint randint(start, end, (tensor size))torch.randint(3, 5, (3,))>>>tensor([4, 3, 4])torch.randint(3, 10, (2, 2))>>>tensor([[4, 5], [6, 7]])scatter VS scatter_ - scatter_(dim, index, value)- scatter(dim, index, value) dim - The dimension along which to scatter0 = scatter along rows (vertical)1 = scatter along columns (horizontal)index - A tensor containing the indices where to place the..

Deep Learning/PyTorch 2022.08.10
이전
1
다음
더보기
  • 분류 전체보기 (359) N
    • Autonomous Vehicle (56)
      • Theory (14)
      • Sensors (11)
      • Video Geometry (25)
    • Deep Learning (21) N
      • PyTorch (11)
      • Tensorflow (8)
      • CNN (7)
      • Object Detection (16)
    • Machine Learning (19)
    • Reinforcement Learning (4)
    • Analyze Data (29)
      • Python (2)
      • Python Libraries (20)
      • Measure of similarity (7)
    • KAFKA (6)
    • d3.js (20)
    • Environment (9)
      • Anaconda (4)
      • VisualStudioCode (3)
      • Jupyter (2)
    • JavaScript (10)
    • C# (6)
    • Linux (15)
      • terminal (9)
      • Nvidia (3)
    • Docker (17)
    • Git (7)
    • Concept (8)
      • Network (3)
    • Elastic Stack (6)
      • Elasticsearch (5)
      • Logstash (1)
    • Basic Python (42) N
      • FastAPI (3)
      • Data Structure (1)
      • Workbook (5)
    • DataBase (11)
      • MYSQL (6)
      • MariaDB (1)
    • Math (21)
    • About me (1)

Tag

nvidia-smi, Filter, randn, forward propagation, zeros, axis, Sigmoid function, batch size, docker-compose, Regular Expression, classmethod, global variable, abstractmethod, d3js, yield from, textdistance, kafka, randint, 3D Rotation Matrix, selectall,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/01   »
일 월 화 수 목 금 토
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

Copyright © Kakao Corp. All rights reserved.

티스토리툴바