Beispiel #1
0
        public void TestPowerGradientShiftZero()
        {
            PowerLayerTest test = new PowerLayerTest();

            try
            {
                foreach (IPowerLayerTest t in test.Tests)
                {
                    t.TestForward(0.37, 0.83, 0);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Beispiel #2
0
        public void TestPowerZero()
        {
            PowerLayerTest test = new PowerLayerTest();

            try
            {
                foreach (IPowerLayerTest t in test.Tests)
                {
                    t.TestForward(0.0, 0.83, -2.4);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Beispiel #3
0
        public void TestPowerTwoScaleHalfGradient()
        {
            PowerLayerTest test = new PowerLayerTest();

            try
            {
                foreach (IPowerLayerTest t in test.Tests)
                {
                    t.TestForward(2.0, 0.5, -2.4);
                }
            }
            finally
            {
                test.Dispose();
            }
        }