Exemplo n.º 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();
            }
        }
Exemplo n.º 2
0
        public void TestSetupWithAxis2()
        {
            ReductionLayerTest test = new ReductionLayerTest();

            try
            {
                foreach (IReductionLayerTest t in test.Tests)
                {
                    t.TestSetup(2);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 6
0
        public void TestMean()
        {
            ReductionLayerTest test = new ReductionLayerTest();

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