(self)
Build the TF graph and heads for dataspace model.

    It also prepares different graph, session and heads for sampling and
    classification respectively.
Build the TF graph and heads for dataspace model.
Build the TF graph and heads for dataspace model .
def build(self):
    """Build the TF graph and heads for dataspace model.

    It also prepares different graph, session and heads for sampling and
    classification respectively.
    """

    config_name = self.config_name
    config = load_config(config_name)
    exp_uid = self.exp_uid

    graph = tf.Graph()
    with graph.as_default():
      sess = tf.Session(graph=graph)
      m = load_model(model_dataspace.Model, config_name, exp_uid)

    self.config = config
    self.graph = graph
    self.sess = sess
    self.m = m
def build ( self ) : config_name = self . config_name config = load_config ( config_name ) exp_uid = self . exp_uid graph = tf . Graph ( ) with graph . as_default ( ) : sess = tf . Session ( graph = graph ) m = load_model ( model_dataspace . Model , config_name , exp_uid ) self . config = config self . graph = graph self . sess = sess self . m = m