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

Method remove_weight_norm

tokenizer.py:411–419  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

409
410
411 def remove_weight_norm(self):
412 def _remove_weight_norm(m):
413 try:
414 print(m)
415 nn.utils.remove_weight_norm(m)
416 except ValueError: # this module didn't have weight norm
417 return
418
419 self.apply(_remove_weight_norm)
420
421
422

Callers 1

_remove_weight_normMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected