Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions distrax/_src/distributions/quantized.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# ==============================================================================
"""Quantized distribution."""

from typing import cast, Optional, Tuple
from typing import Optional, Tuple

import chex
from distrax._src.distributions import distribution as base_distribution
Expand Down Expand Up @@ -107,9 +107,7 @@ def high(self) -> Optional[Array]:
@property
def event_shape(self) -> Tuple[int, ...]:
"""Shape of event of distribution samples."""
event_shape = self.distribution.event_shape
# TODO(b/149413467): Remove explicit casting when resolved.
return cast(Tuple[int, ...], event_shape)
return self.distribution.event_shape

@property
def batch_shape(self) -> Tuple[int, ...]:
Expand Down