MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / reset_parameters

Method reset_parameters

python/oneflow/nn/modules/batchnorm.py:64–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 self.num_batches_tracked.zero_()
63
64 def reset_parameters(self) -> None:
65 self.reset_running_stats()
66 if self.affine:
67 flow.nn.init.ones_(self.weight)
68 flow.nn.init.zeros_(self.bias)
69
70 def _check_input_dim(self, input):
71 raise NotImplementedError

Callers 1

__init__Method · 0.95

Calls 2

reset_running_statsMethod · 0.95
zeros_Method · 0.80

Tested by

no test coverage detected