コード例 #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();
            }
        }