Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 724300701
  • Loading branch information
trax-robot authored and copybara-github committed Feb 7, 2025
1 parent 38fa93a commit 22bfbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trax/data/tf_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def append_targets(example):
# Skip a random fraction at the beginning of the stream. The skip is
# essential for synchronous highly-parallel training to avoid multiple
# replicas reading the same data in lock-step.
dataset = dataset.skip(random.randint(0, _MAX_SKIP_EXAMPLES))
dataset = dataset.skip(random.randint(0, int(_MAX_SKIP_EXAMPLES)))
dataset = preprocess_fn(dataset, training)
dataset = dataset.shuffle(shuffle_buffer_size)
return dataset.prefetch(8)
Expand Down

0 comments on commit 22bfbc2

Please sign in to comment.