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

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

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