mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Save filters' internal state (#127)
* save filters internal state * moving the restore to be made from within NumpyRunningStats
This commit is contained in:
@@ -128,3 +128,11 @@ class TFSharedRunningStats(SharedRunningStats):
|
||||
return self.sess.run(self.clipped_obs, feed_dict={self.raw_obs: batch})
|
||||
else:
|
||||
return self.sess.run(self.normalized_obs, feed_dict={self.raw_obs: batch})
|
||||
|
||||
def save_state_to_checkpoint(self, checkpoint_dir: str, checkpoint_id: int):
|
||||
# the stats are part of the TF graph - no need to explicitly save anything
|
||||
pass
|
||||
|
||||
def restore_state_from_checkpoint(self, checkpoint_dir: str):
|
||||
# the stats are part of the TF graph - no need to explicitly restore anything
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user