(self)
return tl.Fn('ApproximateKLDivergence', f)
Approximate KL divergence.
Approximate KL divergence.
Approximate KL divergence .
def approximate_kl_divergence(self):
    """Approximate KL divergence."""
    def f(dist_inputs, values, returns, dones, rewards,
          actions, old_log_probs):
      del values, returns, dones, rewards
      return rl_layers.ApproximateKLDivergence(
          dist_inputs,
          actions,
          old_log_probs,
          log_prob_fun=self._policy_dist.log_prob)
    return tl.Fn('ApproximateKLDivergence', f)
def approximate_kl_divergence ( self ) : def f ( dist_inputs , values , returns , dones , rewards , actions , old_log_probs ) : del values , returns , dones , rewards return rl_layers . ApproximateKLDivergence ( dist_inputs , actions , old_log_probs , log_prob_fun = self . _policy_dist . log_prob ) return tl . Fn ( 'ApproximateKLDivergence' , f )