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

            try
            {
                foreach (IPersistOnnxTest t in test.Tests)
                {
                    t.TestImportOnnxInceptionV1(null);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Пример #2
0
        public void TestImportOnnxInceptionV1ForTrain()
        {
            PersistOnnxTest test = new PersistOnnxTest();

            try
            {
                foreach (IPersistOnnxTest t in test.Tests)
                {
                    t.TestImportOnnxInceptionV1("CIFAR-10");
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Пример #3
0
        public void TestImportOnnxResNet50ForRun()
        {
            PersistOnnxTest test = new PersistOnnxTest();

            try
            {
                foreach (IPersistOnnxTest t in test.Tests)
                {
                    t.TestImportOnnxResNet50(null);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Пример #4
0
        public void TestConvertOnnxToLeNet()
        {
            PersistOnnxTest test = new PersistOnnxTest();

            try
            {
                foreach (IPersistOnnxTest t in test.Tests)
                {
                    if (t.DataType == DataType.FLOAT)
                    {
                        t.TestConvertOnnxToLeNet();
                    }
                }
            }
            finally
            {
                test.Dispose();
            }
        }