Exemplo n.º 1
0
        internal MemoryBuffer2D <float>[] GetShouldsActivated(InputLayer2D inputLayer)
        {
            LoadShoulds();
            var buffer = inputLayer.SwapInputs(shouldsOnGPU);

            inputLayer.CalculateOutput();
            for (int i = 0; i < buffer.Length; i++)
            {
                GPUHelper.ScrapOutputBuffer(buffer[i]);
            }
            return(inputLayer.GetActivatedBuffer());
        }