Exemplo n.º 1
0
        public void TestGradientLegacy()
        {
            ContrastiveLossLayerTest test = new ContrastiveLossLayerTest(EngineParameter.Engine.CAFFE);

            try
            {
                foreach (IContrastiveLossLayerTest t in test.Tests)
                {
                    t.TestGradientLegacy();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        public void TestForwardLabels()
        {
            ContrastiveLossLayerTest test = new ContrastiveLossLayerTest(EngineParameter.Engine.CAFFE);

            try
            {
                foreach (IContrastiveLossLayerTest t in test.Tests)
                {
                    t.TestForwardLabels();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Exemplo n.º 4
0
        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();
            }
        }