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

Method _reset_parameters

tokenizer.py:394–396  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

392
393 def reset_parameters(self):
394 def _reset_parameters(m):
395 if isinstance(m, (nn.Conv1d, nn.ConvTranspose1d)):
396 m.weight.data.normal_(0.0, 0.01)
397
398 self.apply(_reset_parameters)
399

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected