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

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

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

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