public WeightedCombinerBank(WeightedCombiner combiner, int repetitions) : base(combiner) { if (repetitions < 1) { throw new ArgumentException("Attempt to create a LayerBank with < 1 banks."); } _repetitions = repetitions; _inputs = new NetworkVector(NumberOfInputs); _inputParts = _inputs.Segment(_repetitions); _output = new NetworkVector(NumberOfOutputs); _inputGradient = new NetworkVector(NumberOfInputs); }
public WeightedCombinerBank(WeightedCombiner combiner, int repetitions) : base(combiner, repetitions) { }
public WeightedCombiner(WeightedCombiner combiner) : base(combiner.NumberOfOutputs, combiner.NumberOfInputs) { this.Biases = combiner.Biases.Copy(); this.Weights = combiner.Weights.Copy(); }