Example #1
0
        public void TestGradientUnnormalized()
        {
            SoftmaxLossLayerTest test = new SoftmaxLossLayerTest(EngineParameter.Engine.CAFFE);

            try
            {
                foreach (ISoftmaxLossLayerTest t in test.Tests)
                {
                    t.TestGradientUnnormalized();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #2
0
        public void TestGradientCuDnn()
        {
            SoftmaxLossLayerTest test = new SoftmaxLossLayerTest(EngineParameter.Engine.CUDNN);

            try
            {
                foreach (ISoftmaxLossLayerTest t in test.Tests)
                {
                    t.TestGradient();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #3
0
        public void TestForwardIgnoreLabel()
        {
            SoftmaxLossLayerTest test = new SoftmaxLossLayerTest(EngineParameter.Engine.CAFFE);

            try
            {
                foreach (ISoftmaxLossLayerTest t in test.Tests)
                {
                    t.TestForwardIgnoreLabel();
                }
            }
            finally
            {
                test.Dispose();
            }
        }