Пример #1
0
        public void TestTrain()
        {
            MyCaffeControlTest test = new MyCaffeControlTest();

            try
            {
                foreach (IMyCaffeControlTest t in test.Tests)
                {
                    t.TestTrain();
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Пример #2
0
        public void TestLoadReinforcement()
        {
            MyCaffeControlTest test = new MyCaffeControlTest();

            try
            {
                foreach (IMyCaffeControlTest t in test.Tests)
                {
                    t.TestLoad(true);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
        public void TestTestManyWithTensorCores()
        {
            MyCaffeControlTest test = new MyCaffeControlTest();

            try
            {
                foreach (IMyCaffeControlTest t in test.Tests)
                {
                    t.TestTestMany(true);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Пример #4
0
        public void TestTrainMultiGpu2()
        {
            MyCaffeControlTest test = new MyCaffeControlTest();

            try
            {
                List <int> rgGpu = getGpus(2);
                foreach (IMyCaffeControlTest t in test.Tests)
                {
                    t.TestTrainMultiGpu(rgGpu.ToArray());
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Пример #5
0
        public void TestTrainMultiGpu4()
        {
            MyCaffeControlTest test = new MyCaffeControlTest();

            try
            {
                List <int> rgGpu = getGpus(4);
                if (rgGpu.Count < 4)
                {
                    return;
                }

                foreach (IMyCaffeControlTest t in test.Tests)
                {
                    t.TestTrainMultiGpu(rgGpu.ToArray());
                }
            }
            finally
            {
                test.Dispose();
            }
        }