예제 #1
0
 def inc(self, increment):
     if not logger.get_log_tabular_only():
         self.cur_count += increment
         new_progress = self.cur_count * self.max_progress / self.total_count
         if new_progress < self.max_progress:
             self.pbar.update(new_progress - self.cur_progress)
         self.cur_progress = new_progress
예제 #2
0
 def update(self, current_count):
     if not logger.get_log_tabular_only():
         self.cur_count = current_count
         new_progress = self.cur_count * self.max_progress / self.total_count
         if new_progress < self.max_progress:
             self.pbar.update(new_progress - self.cur_progress)
         self.cur_progress = new_progress
예제 #3
0
 def __init__(self, total_count):
     self.total_count = total_count
     self.max_progress = 1000000
     self.cur_progress = 0
     self.cur_count = 0
     if not logger.get_log_tabular_only():
         self.pbar = pyprind.ProgBar(self.max_progress)
     else:
         self.pbar = None
예제 #4
0
 def __init__(self, total_count):
     self.total_count = total_count
     self.max_progress = 1000000
     self.cur_progress = 0
     self.cur_count = 0
     if not logger.get_log_tabular_only():
         self.pbar = pyprind.ProgBar(self.max_progress)
     else:
         self.pbar = None
 def __init__(self, total_count):
     self.total_count = total_count
     self.max_progress = 1000000
     self.cur_progress = 0
     self.cur_count = 0
     if not logger.get_log_tabular_only():
         self.pbar = tqdm.tqdm(total = total_count)
     else:
         self.pbar = None
 def inc(self, increment):
     if not logger.get_log_tabular_only():
         self.cur_count += increment
         self.pbar.update(increment)
예제 #7
0
파일: stateful_pool.py 프로젝트: cknd/rllab
 def stop(self):
     if not logger.get_log_tabular_only():
         self.pbar.stop()
예제 #8
0
 def stop(self):
     if not logger.get_log_tabular_only():
         self.pbar.stop()