Python torch.nn.functional模块,常用函数和类

下面列出了Python torch.nn.functional 模块中定义的常用函数和类,我们从315个开源Python项目中,按照使用频率进行了排序。

函数和类 使用项目数
1. relu() 用在(193)个项目中
2. softmax() 用在(119)个项目中
3. log_softmax() 用在(102)个项目中
4. dropout() 用在(75)个项目中
5. sigmoid() 用在(72)个项目中
6. tanh() 用在(67)个项目中
7. max_pool2d() 用在(49)个项目中
8. cross_entropy() 用在(48)个项目中
9. avg_pool2d() 用在(48)个项目中
10. nll_loss() 用在(39)个项目中
11. linear() 用在(25)个项目中
12. smooth_l1_loss() 用在(25)个项目中
13. conv2d() 用在(24)个项目中
14. elu() 用在(19)个项目中
15. leaky_relu() 用在(17)个项目中
16. pad() 用在(16)个项目中
17. max_pool1d() 用在(14)个项目中
18. batch_norm() 用在(13)个项目中
19. softplus() 用在(12)个项目中
20. binary_cross_entropy() 用在(12)个项目中
21. normalize() 用在(10)个项目中
22. upsample() 用在(9)个项目中
23. pairwise_distance() 用在(9)个项目中
24. conv1d() 用在(8)个项目中
25. kl_div() 用在(8)个项目中
26. grid_sample() 用在(7)个项目中
27. affine_grid() 用在(6)个项目中
28. triplet_margin_loss() 用在(5)个项目中
29. conv3d() 用在(5)个项目中
30. bilinear() 用在(5)个项目中
31. cosine_similarity() 用在(5)个项目中