stat =^._.^= ∫

  • 홈
  • 태그
  • 방명록

Deep Learning 1

[PyTorch] mul, matmul, mm 차이

torch.mul() 두 행렬의 단순 곱 연산 ⇒ element wise 곱 (⊙) 같은 위치의 원소끼리 곱함 import torch a = torch.tensor([[2, 2], [3, 3]]) b = torch.tensor([[4, 4], [5, 5]]) torch.mul(a, b) # 출력 : tensor([[ 8, 8], # [15, 15]]) torch.matmul() 행렬 곱셈 broadcasting 가능 *broadcasting : 사이즈가 맞지 않아도 자동으로 맞춰 계산해주는 기능 import torch a = torch.tensor([[2, 2], [3, 3]]) b = torch.tensor([[4, 4], [5, 5]]) c = torch.tensor([[[2, 2], [2, 2]]]..

Deep Learning 2023.04.10
이전
1
다음
더보기
프로필사진

#Statistics #Data Science #AI #Recommender System

  • 분류 전체보기 (64)
    • NAVER boostcamp AI Tech (19)
    • Coding Test Practice (41)
      • Python (35)
      • SQL (6)
    • Deep Learning (1)
    • Paper Review (2)
    • Statistics (1)
    • Projects (0)
      • Data Analysis (0)

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Calendar

«   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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바