MCPcopy
hub / github.com/descriptinc/descript-audio-codec / WNConv2d

Function WNConv2d

dac/model/discriminator.py:19–24  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

17
18
19def WNConv2d(*args, **kwargs):
20 act = kwargs.pop("act", True)
21 conv = weight_norm(nn.Conv2d(*args, **kwargs))
22 if not act:
23 return conv
24 return nn.Sequential(conv, nn.LeakyReLU(0.1))
25
26
27class MPD(nn.Module):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected