MCPcopy Create free account
hub / github.com/Standard-Intelligence/hertz-dev / apply_weight_norm

Method apply_weight_norm

tokenizer.py:401–408  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

399
400
401 def apply_weight_norm(self):
402 def _apply_weight_norm(m):
403 if isinstance(m, nn.Conv1d) or isinstance(
404 m, nn.ConvTranspose1d
405 ):
406 nn.utils.parametrizations.weight_norm(m)
407
408 self.apply(_apply_weight_norm)
409
410
411 def remove_weight_norm(self):

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected