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

Method reset_parameters

modules/VIPTRv1.py:291–295  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

289 self.dwconv = DWConv2d(ffn_dim, 3, 1, 1) if subconv else None
290
291 def reset_parameters(self):
292 self.fc1.reset_parameters()
293 self.fc2.reset_parameters()
294 if self.ffn_layernorm is not None:
295 self.ffn_layernorm.reset_parameters()
296
297 def forward(self, x: torch.Tensor):
298 '''

Callers

nothing calls this directly

Calls 1

reset_parametersMethod · 0.45

Tested by

no test coverage detected