-
torch vs pytorch카테고리 없음 2023. 10. 16. 18:01
pytorch를 쓰다 문득 궁금증이 생겼다. 어째서 패키지명은 pytorch 가 아닌 torch를 쓰고 있는 것인가?
conda랑 pip를 이용해 pytorch를 설치할 때도 conda에선 pytorch라고 명시하는 반면, pip는 torch로 설치한다.
구글에 검색해보니 다음과 같은 글이 있다.
https://stackoverflow.com/questions/44371560/what-is-the-relationship-between-pytorch-and-torch
What is the relationship between PyTorch and Torch?
There are two PyTorch repositories : https://github.com/hughperkins/pytorch https://github.com/pytorch/pytorch The first clearly requires Torch and lua and is a wrapper, but the second doesn't ma...
stackoverflow.com
2023년에 작성한 답변이 보였는데 요약하자면, 일단 torch, pytorch는 서로 다른 것을 지칭했다.
torch는 2013년 EPFL에서 IDIAP가 진행한 프로젝트로 C로 짜였으며 lua wrapper로 구현됐고 페이스북도 참여했으나 2019년 개발 중단됐다.
pytorch는 2016년 페이스북에서 진행한 프로젝트로 C++로 짜였으며 python interface로 구현됐다. 2022년엔 MS, NVIDIA, AMD 등 여러 빅테크가 참여하는 Linux Foundation으로 이관됐다.
정리하자면, 초기 torch는 lua로 코딩하는 딥러닝 프레임워크였으나 망했고, 현재는 python으로 코딩하는 pytorch가 torch의 명맥을 이어가는 것이라고 볼 수 있다.