반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- deep learning #segmentation #sementic #pytorch #UNETR #transformer #UNET #3D #3D medical image
- precision #정밀도 #민감도 #sensitivity #특이도 #specifisity #F1 score #dice score #confusion matrix #recall #PR-AUC #ROC-AUC #PR curve #ROC curve #NPV #PPV
- Phase recognition
- PYTHON
- MICCAI
- MRI
- parer review
- words encoding
- decorater
- 모수적 모델
- non-parametric model
- genetic epidemiology
- 파이썬
- 유전역학
- 비모수적 모델
- 확산강조영상
- 코드오류
- monai
- 데코레이터
- parrec
- Surgical video analysis
- nfiti
- nibabel
- TabNet
- nlp
- parametric model
- 확산텐서영상
- tabular
- paper review
- TeCNO
Archives
- Today
- Total
목록pytorch #torch #torch.nn #torch.nn.Functional #F #nn #차이 (1)
KimbgAI
[ML][pytorch] torch.nn 과 torch.nn.Functional 의 차이
결론부터 말하자면 이름처럼 torch.nn.functional은 함수고 torch.nn은 클래스이다. 그래서 torch.nn으로 구현한 경우에는 객체를 인스턴스화하여 attribute를 활용해 state를 저장하고 활용할 수 있고, torch.nn.functional로 구현한 경우에는 인스턴스화 시킬 필요 없이 바로 사용이 가능하다. *attribute란 클래스 내부에 있는 메소드나 변수 등을 의미함 그저 model class를 만들 때 init 부분에 torch.nn 클래스를 이용하여 모델을 정의해 버리거나 forward 진행할 때 직접 torch.nn.functional 함수를 이용하여 계산해주거나의 차이일 뿐! 출처 https://cchhoo407.tistory.com/29 https://cvml...
machine learning
2022. 11. 8. 15:52