torch.nn.functional.selu

torch.nn.functional.selu(input, inplace=False) Tensor[源代码]

逐元素应用公式$\text{SELU}(x) = \text{scale} * (\max(0,x) + \min(0, \alpha * (\exp(x) - 1)))$,其中$\alpha=1.6732632423543772848170429916717$$scale=1.0507009873554804934193349852946$

更多详情请参见SELU

返回类型

Tensor

本页目录