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

Method _remove_weight_norm

tokenizer.py:412–417  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

remove_weight_normMethod · 0.80

Tested by

no test coverage detected