public void TestSumCoeff() { ReductionLayerTest test = new ReductionLayerTest(); try { foreach (IReductionLayerTest t in test.Tests) { t.TestForward(ReductionParameter.ReductionOp.SUM, 2.3); } } finally { test.Dispose(); } }
public void TestSetupWithAxis2() { ReductionLayerTest test = new ReductionLayerTest(); try { foreach (IReductionLayerTest t in test.Tests) { t.TestSetup(2); } } finally { test.Dispose(); } }
public void TestSumOfSquaresCoeffAxis1Gradient() { ReductionLayerTest test = new ReductionLayerTest(); try { foreach (IReductionLayerTest t in test.Tests) { t.TestGradient(ReductionParameter.ReductionOp.SUMSQ, 2.3, 1); } } finally { test.Dispose(); } }
public void TestAbsSumCoeffGradient() { ReductionLayerTest test = new ReductionLayerTest(); try { foreach (IReductionLayerTest t in test.Tests) { t.TestGradient(ReductionParameter.ReductionOp.ASUM, 2.3); } } finally { test.Dispose(); } }
public void TestMeanCoeffAxis1Gradient() { ReductionLayerTest test = new ReductionLayerTest(); try { foreach (IReductionLayerTest t in test.Tests) { t.TestGradient(ReductionParameter.ReductionOp.MEAN, 2.3, 1); } } finally { test.Dispose(); } }
public void TestMean() { ReductionLayerTest test = new ReductionLayerTest(); try { foreach (IReductionLayerTest t in test.Tests) { t.TestForward(ReductionParameter.ReductionOp.MEAN); } } finally { test.Dispose(); } }