반응형
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 | 29 | 30 | 31 |
Tags
- decorater
- MRI
- PYTHON
- pytorch #torch #monai #dice #score #metric #segmentation #loss
- pytorch #torch #ViT #vit #VIT #Transformer #deep learning #vision #classification #image
- VNet #Vnet #segmentation #3D #voxel #semantic #pytorch #deep learning #UNet
- 유전역학
- Surgical video analysis
- nibabel
- 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
- MICCAI
- monai
- RGB #CMYK #DPI
- parrec
- genetic epidemiology
- 확산강조영상
- 확산텐서영상
- TeCNO
- 파이썬
- nlp
- 코드오류
- nfiti
- 데코레이터
- words encoding
- data augmentation #augmentation #3d #deep learning #image # medical image #pytorch #medical #CT #3D
- pytorch #torch #torch.nn #torch.nn.Functional #F #nn #차이
- FLOPs #FLOPS
- Phase recognition
- tqdm #deep learning #dataloader #jupyter #notebook #ipywidgets
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