Beispiel #1
0
 def iteration(self):
     return utils.flatten_list(
         [opt_dict.iteration for opt_dict in sorted(self._optimizer_dicts)])
Beispiel #2
0
 def iteration(self):
     return utils.flatten_list([opt_dict.iteration for opt_dict in sorted(self._optimizer_dicts)])
Beispiel #3
0
 def _state_feed_dict_generator(self, history):
     state = utils.flatten_list(
         [opt_dict.state for opt_dict in sorted(self._optimizer_dicts)])
     for t, his in enumerate(history):
         yield t, {v: his[k] for k, v in enumerate(state)}
Beispiel #4
0
 def _state_feed_dict_generator(self, history):
     state = utils.flatten_list([opt_dict.state for opt_dict in sorted(self._optimizer_dicts)])
     for t, his in enumerate(history):
         yield t, {v: his[k] for k, v in enumerate(state)}