Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HMUNACHI committed May 12, 2024
1 parent 2e5efc6 commit 61d5acb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ This is still in dev, works great but roughness is expected, and contributions a

- Make your changes without changing the design patterns.
- Write tests for your changes if necessary.
- Install locally with `pip install -e .`.
- Run tests with `python -m unittest discover -s tests`.
- Install locally with `pip3 install -e .`.
- Run tests with `python3 -m unittest discover -s tests`.
- Then submit a pull request.

Contributions can be made in various forms:
Expand Down
4 changes: 2 additions & 2 deletions nanodl/__src/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(
self.shuffle = shuffle
self.drop_last = drop_last

self.keys = __PRNGSequence(seed=Config.default().global_seed)
self.keys = _PRNGSequence(seed=Config.default().global_seed)
self.data_len = len(dataset) # Length of the dataset
self.indices = jnp.arange(self.data_len) # available indices in the dataset
self.pose = 0 # record the current position in the dataset
Expand Down Expand Up @@ -162,7 +162,7 @@ def default(cls):
return cls(rng_reserve_size=1, global_seed=42)


class __PRNGSequence(Iterator[jax.random.PRNGKey]):
class _PRNGSequence(Iterator[jax.random.PRNGKey]):
"""
An Iterator of Jax PRNGKey (minimal version of `haiku.PRNGSequence`).
Expand Down

0 comments on commit 61d5acb

Please sign in to comment.