'Args:
config (TrainConfig): Must contain \'model\' and either one of \'data\' or \'dataflow\'.'

def __init__(self, config):

    assert (len(config.tower) == 1), "Got    nr_tower={},    but    doesn't    support    multigpu!    Use    Sync/AsyncMultiGPUTrainer    instead.".format(len(config.tower))
    assert (((config.data is not None) or (config.dataflow is not None)) and (config.model is not None))
    if (config.dataflow is None):
        self._input_source = config.data
    else:
        self._input_source = FeedInput(config.dataflow)
        logger.warn('FeedInput    is    slow    (and    this    is    the    default    of    SimpleTrainer).    Consider    QueueInput    or    other    InputSource    instead.')
    super(SimpleTrainer, self).__init__(config)
