コード例 #1
0
        public void TestGradientLegacy()
        {
            ContrastiveLossLayerTest test = new ContrastiveLossLayerTest(EngineParameter.Engine.CAFFE);

            try
            {
                foreach (IContrastiveLossLayerTest t in test.Tests)
                {
                    t.TestGradientLegacy();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
コード例 #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();
            }
        }
コード例 #3
0
        public void TestForwardLabels()
        {
            ContrastiveLossLayerTest test = new ContrastiveLossLayerTest(EngineParameter.Engine.CAFFE);

            try
            {
                foreach (IContrastiveLossLayerTest t in test.Tests)
                {
                    t.TestForwardLabels();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
コード例 #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();
            }
        }