torch.sigmoid() 与 torch.nn.Sigmoid() 对比 python

1.   torch.sigmoid() 

2.  torch.nn.Sigmoid() 

只看文档,我没太看出二者的具体区别,通过以下可知得到结果自然相同,不过使用方式确实不同,我目前也没明白为啥:

猜你喜欢

转载自blog.csdn.net/qq_39938666/article/details/88809726