コード例 #1
0
        public static KerasSymbol Selu(KerasSymbol x)
        {
            var alpha = 1.6732632423543772f;
            var scale = 1.0507009873554805f;

            return(scale * K.Elu(x, alpha));
        }
コード例 #2
0
        public override KerasSymbol[] Invoke(KerasSymbol[] inputs, FuncArgs kwargs = null)
        {
            List <KerasSymbol> result = new List <KerasSymbol>();

            foreach (var input in inputs)
            {
                result.Add(K.Elu(input, alpha));
            }

            return(result.ToArray());
        }
コード例 #3
0
 public static KerasSymbol Elu(KerasSymbol x, float alpha = 1)
 {
     return(K.Elu(x, alpha));
 }