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
4 changes: 2 additions & 2 deletions clu/data/dataset_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@
from etils import epath
import jax.numpy as jnp # Just for type checking.
import numpy as np
import numpy.typing as npt

Array = Union[np.ndarray, jnp.ndarray]
DType = np.dtype
# Sizes of dimensions, None means the dimension size is unknown.
Shape = Tuple[Optional[int], ...]


@dataclasses.dataclass(frozen=True)
class ArraySpec:
"""Describes an array via it's dtype and shape."""
dtype: DType
dtype: npt.DTypeLike
shape: Shape

def __repr__(self):
Expand Down