MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / shuffle_batches

Method shuffle_batches

tasks/tts/tts.py:57–59  ·  view source on GitHub ↗
(batches)

Source from the content-addressed store, hash-verified

55 required_batch_size_multiple = devices_cnt
56
57 def shuffle_batches(batches):
58 np.random.shuffle(batches)
59 return batches
60
61 if max_tokens is not None:
62 max_tokens *= devices_cnt

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected