Example #1
0
        public void TestInitialize()
        {
            DataLayerTest test = new DataLayerTest("MNIST");

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    t.TestInitialization(test.SourceName);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #2
0
        public void TestForward2()
        {
            DataLayerTest test = new DataLayerTest("MNIST");

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    t.TestForward2(test.SourceName);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #3
0
        public void TestReshapeLoadOnDemand()
        {
            DataLayerTest test = new DataLayerTest();

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    t.TestReshape(IMAGEDB_LOAD_METHOD.LOAD_ON_DEMAND);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #4
0
        public void TestReshapeLoadAll()
        {
            DataLayerTest test = new DataLayerTest();

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    t.TestReshape(IMAGEDB_LOAD_METHOD.LOAD_ALL);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #5
0
        public void TestSkipLoadAll()
        {
            DataLayerTest test = new DataLayerTest();

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    t.Fill(false);
                    t.TestSkip(IMAGEDB_LOAD_METHOD.LOAD_ALL);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #6
0
        public void TestReadLoadAll()
        {
            DataLayerTest test = new DataLayerTest();

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    bool unique_pixels = false;
                    t.Fill(unique_pixels);
                    t.TestRead(IMAGEDB_LOAD_METHOD.LOAD_ALL);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #7
0
        public void TestReadCropTrainSequenceUnseededLoadOnDemand()
        {
            DataLayerTest test = new DataLayerTest();

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    bool unique_pixels = true;
                    t.Fill(unique_pixels);
                    t.TestReadCropSequenceSeeded(IMAGEDB_LOAD_METHOD.LOAD_ON_DEMAND);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #8
0
        public void TestReadCropTestLoadOnDemand()
        {
            DataLayerTest test = new DataLayerTest();

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    bool unique_pixels = true;
                    t.Fill(unique_pixels);
                    t.TestReadCrop(Phase.TEST, IMAGEDB_LOAD_METHOD.LOAD_ON_DEMAND);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #9
0
        public void TestReadCropTrainLoadAll()
        {
            DataLayerTest test = new DataLayerTest();

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    bool unique_pixels = true;
                    t.Fill(unique_pixels);
                    t.TestReadCrop(Phase.TRAIN, IMAGEDB_LOAD_METHOD.LOAD_ALL);
                }
            }
            finally
            {
                test.Dispose();
            }
        }
Example #10
0
        public void TestReadCropTestLoadAll()
        {
            DataLayerTest test = new DataLayerTest();

            try
            {
                foreach (IDataLayerTest t in test.Tests)
                {
                    bool unique_pixels = true;

                    for (int i = 0; i < 2; i++)
                    {
                        t.Fill(unique_pixels);
                        t.TestReadCrop(Phase.TEST, IMAGEDB_LOAD_METHOD.LOAD_ALL);
                    }
                }
            }
            finally
            {
                test.Dispose();
            }
        }