示例#1
0
        public void TestGradientCuDnn()
        {
            TanhLayerTest2 test = new TanhLayerTest2(EngineParameter.Engine.CUDNN);

            try
            {
                foreach (ITanhLayerTest2 t in test.Tests)
                {
                    t.TestGradient();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
示例#2
0
        public void TestOverflow()
        {
            TanhLayerTest2 test = new TanhLayerTest2(EngineParameter.Engine.CAFFE);

            try
            {
                foreach (ITanhLayerTest2 t in test.Tests)
                {
                    t.TestTanhOverflow();
                }
            }
            finally
            {
                test.Dispose();
            }
        }