public void TestGradientCuDnn() { TanhLayerTest2 test = new TanhLayerTest2(EngineParameter.Engine.CUDNN); try { foreach (ITanhLayerTest2 t in test.Tests) { t.TestGradient(); } } finally { test.Dispose(); } }
public void TestOverflow() { TanhLayerTest2 test = new TanhLayerTest2(EngineParameter.Engine.CAFFE); try { foreach (ITanhLayerTest2 t in test.Tests) { t.TestTanhOverflow(); } } finally { test.Dispose(); } }