본문 바로가기

내가 보려고 만든 블로그

검색하기
내가 보려고 만든 블로그
프로필사진 정의김

  • 분류 전체보기 (52)
    • Python | Web (15)
      • 웹개발 (2)
      • Python (11)
    • Data Science (8)
      • NLP (2)
      • Pytorch,Tensorflow (1)
      • Bayesian (5)
    • Data Engineering (7)
      • Spark (1)
      • Airflow (1)
      • AWS (2)
      • Hadoop eco ( Hadoop, hive 등.. (1)
      • Streaming (1)
    • 운영체제 (12)
    • Recommendation (10)
      • 모델링 (7)
      • 서빙 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • BIasedMF
  • MatrixFactorization
  • MF
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Data Science/Pytorch,Tensorflow (1)

내가 보려고 만든 블로그

Torch의 Forward 함수는 왜 작동하는 것 일까?

class model(nn.module): def __init__(self): pass def forward(sefl): pass Torch로 모델을 만들다 보면 항상 궁금한 것이 있었다. 보통 토치에서 모델을 만들때 다음과 같은 형태로 모델을 만드는데 이렇게 만들어진 클래스를 model = model() 과 같이 인스턴스한 한 후 input을 넣기만 하면 모델이 동작을 한다는 점이다. 분명히 forward부분을 정의만하고 사용한 적이 없는데도 말이다. 궁금해서 module.nn의 소스코드를 열어보았다. https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/module.py GitHub - pytorch/pytorch: Tensors and D..

Data Science/Pytorch,Tensorflow 2021. 11. 22. 21:19
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바