コード例 #1
0
        public override void PreUpdateWeights(Neuron neuron, float[] errs)
        {
            LSTMNeuron lstmNeuron = neuron as LSTMNeuron;

            for (int i = 0; i < LayerSize; i++)
            {
                LSTMCells[i].Set(lstmNeuron.LSTMCells[i]);
            }

            errs.CopyTo(Errs, 0);
        }
コード例 #2
0
        public override Neuron CopyNeuronTo(Neuron neuron)
        {
            LSTMNeuron lstmNeuron = neuron as LSTMNeuron;

            Cells.CopyTo(lstmNeuron.Cells, 0);
            for (int i = 0; i < LayerSize; i++)
            {
                lstmNeuron.LSTMCells[i].Set(LSTMCells[i]);
            }

            return(lstmNeuron);
        }