'Build a whole graph for the model.'

def build_graph(self):

    self.global_step = tf.contrib.framework.get_or_create_global_step()
    self._build_model()
    if (self.mode == 'train'):
        self._build_train_op()
    self.summaries = tf.summary.merge_all()
