(self)
| 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) |
no test coverage detected