Skip to content

Commit

Permalink
Fix on store training
Browse files Browse the repository at this point in the history
  • Loading branch information
yura-hb committed Mar 7, 2024
1 parent c3fe8ef commit 273e04c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diploma_thesis/agents/base/marl_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def train_step(self):

@filter(lambda self, *args: self.phase == TrainingPhase())
def store(self, key: Key, sample: TrainingSample):
self.trainer[key].store(sample)
self.trainer[key].store(sample, self.model.policy)

def loss_record(self):
if self.keys is None:
Expand Down
2 changes: 1 addition & 1 deletion diploma_thesis/agents/base/rl_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def train_step(self):

@filter(lambda self, *args: self.phase != EvaluationPhase())
def store(self, key: Key, sample: TrainingSample):
self.trainer.store(sample)
self.trainer.store(sample, self.model.policy)

def loss_record(self):
return self.trainer.loss_record()
Expand Down

0 comments on commit 273e04c

Please sign in to comment.