'Load the model, setup the data, set the stopping conditions.'

def SetUpTrainer(self):

    self.LoadModelOnGPU()
    if self.verbose:
        self.PrintNetwork()
    self.SetUpData()
    if self.t_op.stopcondition.all_processed:
        num_steps = self.train_data_handler.num_batches
    else:
        num_steps = self.t_op.stopcondition.steps
    self.train_stop_steps = num_steps
    if (self.e_op.stopcondition.all_processed and self.validation_data_handler):
        num_steps = self.validation_data_handler.num_batches
    else:
        num_steps = self.e_op.stopcondition.steps
    self.validation_stop_steps = num_steps
    if (self.e_op.stopcondition.all_processed and self.test_data_handler):
        num_steps = self.test_data_handler.num_batches
    else:
        num_steps = self.e_op.stopcondition.steps
    self.test_stop_steps = num_steps
    self.eval_now_steps = self.t_op.eval_after
    self.save_now_steps = self.t_op.checkpoint_after
    self.show_now_steps = self.t_op.show_after
    self.ExchangeGlobalInfo()
