public void TestGradientLegacy() { ContrastiveLossLayerTest test = new ContrastiveLossLayerTest(EngineParameter.Engine.CAFFE); try { foreach (IContrastiveLossLayerTest t in test.Tests) { t.TestGradientLegacy(); } } finally { test.Dispose(); } }
public void TestTrainingSameNonRandomData() { ContrastiveLossLayerTest test = new ContrastiveLossLayerTest(EngineParameter.Engine.CAFFE); try { foreach (IContrastiveLossLayerTest t in test.Tests) { t.TestTraining(true, false, false); } } finally { test.Dispose(); } }
public void TestForwardLabels() { ContrastiveLossLayerTest test = new ContrastiveLossLayerTest(EngineParameter.Engine.CAFFE); try { foreach (IContrastiveLossLayerTest t in test.Tests) { t.TestForwardLabels(); } } finally { test.Dispose(); } }
public void TestTrainingTwoIpLayers() { ContrastiveLossLayerTest test = new ContrastiveLossLayerTest(EngineParameter.Engine.CAFFE); try { foreach (IContrastiveLossLayerTest t in test.Tests) { t.TestTraining(false, true, true); } } finally { test.Dispose(); } }