Exemplo n.º 1
0
        public LeakyReLU(CPU.LeakyReLU leakyReLU) : base(leakyReLU.Name, leakyReLU.InputNames, leakyReLU.OutputNames)
        {
            this.Slope = leakyReLU.Slope;

            this.InitParam();
            this.SetParallel(true);
        }
Exemplo n.º 2
0
 public LeakyReLU(CPU.LeakyReLU <T> leakyReLU) : base(leakyReLU.Name, leakyReLU.InputNames, leakyReLU.OutputNames)
 {
     this.Slope = leakyReLU.Slope;
     this.SetParallel(true, new[] { new KeyValuePair <string, string>(PARAM_NAME, this.Slope.ToString()) });
     this.InitFunc(new StreamingContext());
 }