Skip to content

Commit

Permalink
Delete stale "pylint: disable".
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 424641627
  • Loading branch information
gpapamak authored and DistraxDev committed Jan 27, 2022
1 parent 41cd667 commit bce1753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrax/_src/distributions/gumbel.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _sample_n_and_log_prob(self, key: PRNGKey, n: int) -> Tuple[Array, Array]:
log_prob = -(rnd + jnp.exp(-rnd)) - jnp.log(self._scale)
return samples, log_prob

def entropy(self) -> Array: # pylint:disable=arguments-differ
def entropy(self) -> Array:
"""Calculates the Shannon entropy (in nats)."""
return jnp.log(self._scale) + 1. + jnp.euler_gamma

Expand Down

0 comments on commit bce1753

Please sign in to comment.