Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix typo (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoyamaSohei authored Jun 13, 2023
1 parent cbd117c commit 8367b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mnist/train_ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def create_train_state(rng, config):
apply_fn=cnn.apply, params=params, tx=tx)


def get_train_data_laoder(train_ds, state, batch_size):
def get_train_data_loader(train_ds, state, batch_size):
images_np = train_ds['image']
labels_np = train_ds['label']
steps_per_epoch = len(images_np) // batch_size
Expand Down Expand Up @@ -163,7 +163,7 @@ def train_and_evaluate(config: ml_collections.ConfigDict,
rng = jax.random.PRNGKey(0)
state = create_train_state(rng, config)

train_data_loader, steps_per_epoch = get_train_data_laoder(
train_data_loader, steps_per_epoch = get_train_data_loader(
train_ds, state, config.batch_size)

for epoch in range(1, config.num_epochs + 1):
Expand Down

0 comments on commit 8367b39

Please sign in to comment.