Exemplo n.º 1
0
 /// <summary>
 /// Continuously Differentiable Exponential Linear Unit
 /// </summary>
 /// <param name="x">The input tensor</param>
 /// <param name="alpha">The α value for the CELU formulation. Default: 1.0</param>
 /// <param name="inPlace">Do the operation in-place. Default: False</param>
 /// <returns></returns>
 static public TorchTensor CELU(TorchTensor x, double alpha, bool inPlace = false)
 {
     using (var m = Modules.CELU(alpha, inPlace)) {
         return(m.forward(x));
     }
 }