示例#1
0
        public void TestGradientNonZeroContBufferSize2()
        {
            LSTMLayerTest test = new LSTMLayerTest();

            try
            {
                foreach (ILSTMLayerTest t in test.Tests)
                {
                    t.TestGradientNonZeroContBufferSize2();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#2
0
        public void TestGradient()
        {
            LSTMLayerTest test = new LSTMLayerTest();

            try
            {
                foreach (ILSTMLayerTest t in test.Tests)
                {
                    t.TestGradient();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#3
0
        public void TestCuDnn()
        {
            LSTMLayerTest test = new LSTMLayerTest(EngineParameter.Engine.CUDNN);

            try
            {
                foreach (ILSTMLayerTest t in test.Tests)
                {
                    t.TestCuDnn();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#4
0
        public void TestLSTMUnitSetup()
        {
            LSTMLayerTest test = new LSTMLayerTest();

            try
            {
                foreach (ILSTMLayerTest t in test.Tests)
                {
                    t.TestLSTMUnitSetup();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#5
0
        public void TestForwardCuDnnTraining()
        {
            LSTMLayerTest test = new LSTMLayerTest(EngineParameter.Engine.CUDNN);

            try
            {
                foreach (ILSTMLayerTest t in test.Tests)
                {
                    t.TestForward(Phase.TRAIN);
                }
            }
            finally
            {
                test.Dispose();
            }
        }