示例#1
0
        public void TestSumCoeff()
        {
            ReductionLayerTest test = new ReductionLayerTest();

            try
            {
                foreach (IReductionLayerTest t in test.Tests)
                {
                    t.TestForward(ReductionParameter.ReductionOp.SUM, 2.3);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#2
0
        public void TestSetupWithAxis2()
        {
            ReductionLayerTest test = new ReductionLayerTest();

            try
            {
                foreach (IReductionLayerTest t in test.Tests)
                {
                    t.TestSetup(2);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#3
0
        public void TestSumOfSquaresCoeffAxis1Gradient()
        {
            ReductionLayerTest test = new ReductionLayerTest();

            try
            {
                foreach (IReductionLayerTest t in test.Tests)
                {
                    t.TestGradient(ReductionParameter.ReductionOp.SUMSQ, 2.3, 1);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#4
0
        public void TestAbsSumCoeffGradient()
        {
            ReductionLayerTest test = new ReductionLayerTest();

            try
            {
                foreach (IReductionLayerTest t in test.Tests)
                {
                    t.TestGradient(ReductionParameter.ReductionOp.ASUM, 2.3);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#5
0
        public void TestMeanCoeffAxis1Gradient()
        {
            ReductionLayerTest test = new ReductionLayerTest();

            try
            {
                foreach (IReductionLayerTest t in test.Tests)
                {
                    t.TestGradient(ReductionParameter.ReductionOp.MEAN, 2.3, 1);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#6
0
        public void TestMean()
        {
            ReductionLayerTest test = new ReductionLayerTest();

            try
            {
                foreach (IReductionLayerTest t in test.Tests)
                {
                    t.TestForward(ReductionParameter.ReductionOp.MEAN);
                }
            }
            finally
            {
                test.Dispose();
            }
        }