* Calculate the activation function. * * @param x: Input. * @param alpha: Scaling factor the negative section. * @return Output of the ELU activation.
(x: Tensor, alpha = 1)
| 44 | * @return Output of the ELU activation. |
| 45 | */ |
| 46 | apply(x: Tensor, alpha = 1): Tensor { |
| 47 | return K.elu(x, alpha); |
| 48 | } |
| 49 | } |
| 50 | serialization.registerClass(Elu); |
| 51 |
no test coverage detected