torch.nn.functional.sigmoid torch.nn.functional.sigmoid(input) → Tensor[源代码] 应用逐元素函数 $\text{Sigmoid}(x) = \frac{1}{1 + \exp(-x)}$ 更多信息请参见Sigmoid。