Skip to content

Commit

Permalink
simplify array types
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz committed Dec 20, 2024
1 parent e8437bf commit f8ffed9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions numpyro/distributions/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import numpy as np

import jax
from jax import Array, lax, tree_util
from jax import lax, tree_util
import jax.numpy as jnp
from jax.scipy.special import logsumexp
from jax.typing import ArrayLike
Expand Down Expand Up @@ -581,7 +581,9 @@ def event_shape(self) -> tuple[int, ...]: ...
@property
def event_dim(self) -> int: ...

def sample(self, key: ArrayLike, sample_shape: tuple[int, ...] = ()) -> Array: ...
def sample(
self, key: ArrayLike, sample_shape: tuple[int, ...] = ()
) -> ArrayLike: ...

def log_prob(self, value: ArrayLike) -> ArrayLike: ...

Expand Down

0 comments on commit f8ffed9

Please sign in to comment.