Skip to content

Commit

Permalink
remove unecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz committed Dec 21, 2024
1 parent 6dd9396 commit a7984ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpyro/contrib/hsgp/approximation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ def _non_centered_approximation(phi: Array, spd: Array, m: int) -> Array:
with numpyro.plate("basis", m):
beta = numpyro.sample("beta", dist.Normal(loc=0.0, scale=1.0))

return jnp.asarray(phi @ (spd * beta))
return phi @ (spd * beta)


def _centered_approximation(phi: Array, spd: Array, m: int) -> Array:
with numpyro.plate("basis", m):
beta = numpyro.sample("beta", dist.Normal(loc=0.0, scale=spd))

return jnp.asarray(phi @ beta)
return phi @ beta


def linear_approximation(
Expand Down

0 comments on commit a7984ce

Please sign in to comment.