Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylark0924 committed Sep 11, 2023
1 parent a32be5a commit f48a134
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rofunc/learning/RofuncRL/agents/mixline/ase_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ def update_net(self):
enc_reward = torch.clamp_min(torch.sum(enc_output * ase_latents, dim=-1, keepdim=True), 0.0)
enc_reward *= self._enc_reward_scale

combined_rewards = self._task_reward_weight * rewards + \
self._style_reward_weight * style_rewards + \
self._enc_reward_weight * enc_reward
combined_rewards = (self._task_reward_weight * rewards
+ self._style_reward_weight * style_rewards
+ self._enc_reward_weight * enc_reward)

'''Compute Generalized Advantage Estimator (GAE)'''
values = self.memory.get_tensor_by_name("values")
Expand Down

0 comments on commit f48a134

Please sign in to comment.