Example #1
0
        private IxTrainer createTrainer(Component mycaffe, Stage stage)
        {
            IxTrainer itrainer = null;

            if (mycaffe is MyCaffeControl <double> )
            {
                itrainer = create_trainerD(mycaffe, stage);
            }
            else
            {
                itrainer = create_trainerF(mycaffe, stage);
            }

            itrainer.Initialize();

            return(itrainer);
        }