MCPcopy Create free account
hub / github.com/ADLab-AutoDrive/BEVFusion / reset_parameters

Method reset_parameters

mmdet3d/ops/spconv/conv.py:106–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 self.reset_parameters()
105
106 def reset_parameters(self):
107 init.kaiming_uniform_(self.weight, a=math.sqrt(5))
108 if self.bias is not None:
109 fan_in, _ = _calculate_fan_in_and_fan_out_hwio(self.weight)
110 bound = 1 / math.sqrt(fan_in)
111 init.uniform_(self.bias, -bound, bound)
112
113 def forward(self, input):
114 assert isinstance(input, SparseConvTensor)

Callers 4

__init__Method · 0.95
init_weightsMethod · 0.80
init_weightsMethod · 0.80
init_weightsMethod · 0.80

Calls 1

Tested by

no test coverage detected