(self)
return tl.Fn('EntropyLoss', f)
Entropy layer.
Entropy layer.
Entropy layer .
def entropy_loss(self):
    """Entropy layer."""
    def f(dist_inputs, values, returns, dones, rewards, actions):
      del values, returns, dones, rewards, actions
      return rl_layers.EntropyLoss(
          dist_inputs,
          distribution=self._policy_dist,
          coeff=self._entropy_coeff,
      )
    return tl.Fn('EntropyLoss', f)
def entropy_loss ( self ) : def f ( dist_inputs , values , returns , dones , rewards , actions ) : del values , returns , dones , rewards , actions return rl_layers . EntropyLoss ( dist_inputs , distribution = self . _policy_dist , coeff = self . _entropy_coeff , ) return tl . Fn ( 'EntropyLoss' , f )