public void InnerProductLayer_BackwardGradient(int output, FillerConfiguration weightsFiller, FillerConfiguration biasFiller)
        {
            bool useBias = biasFiller != null;

            var config = new InnerProductLayerConfiguration(output, useBias, weightsFiller, biasFiller);
            var layer = new InnerProductLayer(config);

            var checker = new GradientChecker(1e-4f, 1e-3f);
            checker.CheckExhaustive(layer, bottom, top);
        }
Ejemplo n.º 2
0
        public void InnerProductLayer_BackwardGradient(int output, FillerConfiguration weightsFiller, FillerConfiguration biasFiller)
        {
            bool useBias = biasFiller != null;

            var config = new InnerProductLayerConfiguration(output, useBias, weightsFiller, biasFiller);
            var layer  = new InnerProductLayer(config);

            var checker = new GradientChecker(1e-4f, 1e-3f);

            checker.CheckExhaustive(layer, bottom, top);
        }