MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / reset_parameters

Method reset_parameters

vtp/models/layers/misc.py:22–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20 self.init_values = init_values
21
22 def reset_parameters(self):
23 nn.init.constant_(self.gamma, self.init_values)
24
25 def forward(self, x: Tensor) -> Tensor:
26 return x.mul_(self.gamma) if self.inplace else x * self.gamma

Callers 2

init_weights_vitFunction · 0.45
init_weightsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected