Ejemplo n.º 1
0
        public void TestGradientCuDnn()
        {
            TanhLayerTest2 test = new TanhLayerTest2(EngineParameter.Engine.CUDNN);

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

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