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

Function num_to_groups

usr/diff/shallow_diffusion_tts.py:34–40  ·  view source on GitHub ↗
(num, divisor)

Source from the content-addressed store, hash-verified

32
33
34def num_to_groups(num, divisor):
35 groups = num // divisor
36 remainder = num % divisor
37 arr = [divisor] * groups
38 if remainder > 0:
39 arr.append(remainder)
40 return arr
41
42
43class Residual(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected