MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / reset_parameters

Method reset_parameters

modules/VIPTRv2.py:285–289  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

283 self.dwconv = DWConv2d(ffn_dim, 3, 1, 1) if subconv else None
284
285 def reset_parameters(self):
286 self.fc1.reset_parameters()
287 self.fc2.reset_parameters()
288 if self.ffn_layernorm is not None:
289 self.ffn_layernorm.reset_parameters()
290
291 def forward(self, x: torch.Tensor):
292 '''

Callers

nothing calls this directly

Calls 1

reset_parametersMethod · 0.45

Tested by

no test coverage detected