Skip to content

Commit

Permalink
chore: lax.sqaure replaced with jnp.sqaure
Browse files Browse the repository at this point in the history
  • Loading branch information
Qazalbash committed Jul 6, 2024
1 parent d8eb1e5 commit 1192ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpyro/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,7 @@ def mean(self):
@lazy_property
def variance(self):
moment2 = self._kth_moment(2)
return moment2 - lax.square(self.mean)
return moment2 - jnp.square(self.mean)


class LowerTruncatedPowerLaw(Distribution):
Expand Down Expand Up @@ -3100,7 +3100,7 @@ def mean(self):

@lazy_property
def variance(self):
return self._kth_moment(2) - lax.square(self.mean)
return self._kth_moment(2) - jnp.square(self.mean)

def entropy(self):
# The simplified expression for the entorpy is,
Expand Down

0 comments on commit 1192ca7

Please sign in to comment.