示例#1
0
        public Matrix[] Compute(Matrix[] input)
        {
            var outputs = Neurons.AsParallel().Select(n => n.Compute(input)).ToArray();

            Outputs = outputs;

            return(outputs);
        }
        public double[] Compute(double[] inputs)
        {
            var outputs = Neurons.AsParallel().Select(n => n.Compute(inputs)).ToArray();

            Outputs = outputs;

            return(outputs);
        }
示例#3
0
        public double[][,] Compute(double[][,] input)
        {
            var outputs = Neurons.AsParallel().Select((n, i) => n.Compute(input[i])).ToArray();

            Outputs = outputs;

            return(Outputs);
        }
示例#4
0
文件: Layer.cs 项目: obarlik/Nevrona
 public void Calculate(Layer prevLayer)
 {
     Neurons.AsParallel()
     .ForAll(n => n.Calculate(prevLayer));
 }