(self)
build graph
build graph
build graph
def build(self):
    ''' build graph '''
    solver_name = self.config['solver']['name']
    solver = registers.solver[solver_name](self.config)

    with self.graph.as_default():
      dataset = solver.input_fn(self._mode)()
      iterator = dataset.make_one_shot_iterator()
      self.next_element = iterator.get_next()
def build ( self ) : solver_name = self . config [ 'solver' ] [ 'name' ] solver = registers . solver [ solver_name ] ( self . config ) with self . graph . as_default ( ) : dataset = solver . input_fn ( self . _mode ) ( ) iterator = dataset . make_one_shot_iterator ( ) self . next_element = iterator . get_next ( )