MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / init_weights

Function init_weights

moss_soundeffect_v2/diffsynth/models/dac_vae.py:674–677  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

672
673
674def init_weights(m):
675 if isinstance(m, nn.Conv1d):
676 nn.init.trunc_normal_(m.weight, std=0.02)
677 nn.init.constant_(m.bias, 0)
678
679
680class ResidualUnit(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected