Skip to content

Commit

Permalink
fix style for rnd and icm
Browse files Browse the repository at this point in the history
  • Loading branch information
ruoyuGao committed Jun 20, 2023
1 parent 97da5c6 commit 774b2a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ding/reward_model/rnd_reward_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def clear_data(self, iter: int) -> None:
self.cfg, 'clear_buffer_per_iters'
), "Reward Model does not have clear_buffer_per_iters, \
if you want to clear buffer, you need to add this attribute in config."

if iter % self.cfg.clear_buffer_per_iters == 0:
self.train_obs.clear()

Expand Down

0 comments on commit 774b2a4

Please sign in to comment.