Exemplo n.º 1
0
        public void GradientWrtParametersCheck(int inputWidth, int inputHeight, int inputDepth, int neuronCount)
        {
            // Create layer
            var layer = new FullyConnLayer(neuronCount);

            GradientCheckTools.GradienWrtParameterstCheck(inputWidth, inputHeight, inputDepth, layer);
        }
Exemplo n.º 2
0
        public void GradientWrtParametersCheck()
        {
            const int inputWidth  = 10;
            const int inputHeight = 10;
            const int inputDepth  = 2;

            // Create layer
            const int filterWidth  = 3;
            const int filterHeight = 3;
            const int filterCount  = 2;

            var layer = new ConvLayer(filterWidth, filterHeight, filterCount)
            {
                Stride = 2
            };

            GradientCheckTools.GradienWrtParameterstCheck(inputWidth, inputHeight, inputDepth, layer);
        }