MCPcopy
hub / github.com/myshell-ai/OpenVoice / get_padding

Function get_padding

openvoice/commons.py:12–13  ·  view source on GitHub ↗
(kernel_size, dilation=1)

Source from the content-addressed store, hash-verified

10
11
12def get_padding(kernel_size, dilation=1):
13 return int((kernel_size * dilation - dilation) / 2)
14
15
16def convert_pad_shape(pad_shape):

Callers 2

__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected