Exemple #1
0
        public void TestGradientCuDnn()
        {
            SoftmaxLayerTest test = new SoftmaxLayerTest(EngineParameter.Engine.CUDNN);

            try
            {
                foreach (INeuronLayerTest t in test.Tests)
                {
                    t.TestGradient();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Exemple #2
0
        public void TestForward()
        {
            SoftmaxLayerTest test = new SoftmaxLayerTest(EngineParameter.Engine.CAFFE);

            try
            {
                foreach (INeuronLayerTest t in test.Tests)
                {
                    t.TestForward();
                }
            }
            finally
            {
                test.Dispose();
            }
        }