def combine_loss_components(critic_loss_val, actor_loss_val, entropy_val,
                            actor_loss_weight, entropy_bonus):
  """Combine the components in the combined AWR loss."""
  return critic_loss_val + (actor_loss_val * actor_loss_weight) - (
      entropy_val * entropy_bonus)