mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Add is_on_policy property to agents (#480)
This commit is contained in:
@@ -149,6 +149,10 @@ class PPOAgent(ActorCriticAgent):
|
||||
self.total_kl_divergence_during_training_process = 0.0
|
||||
self.unclipped_grads = self.register_signal('Grads (unclipped)')
|
||||
|
||||
@property
|
||||
def is_on_policy(self) -> bool:
|
||||
return True
|
||||
|
||||
def fill_advantages(self, batch):
|
||||
batch = Batch(batch)
|
||||
network_keys = self.ap.network_wrappers['critic'].input_embedders_parameters.keys()
|
||||
|
||||
Reference in New Issue
Block a user