Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ reset_parameters
Method
reset_parameters
python/oneflow/nn/modules/normalization.py:147–150 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
145
self.reset_parameters()
146
147
def
reset_parameters(self) -> None:
148
if
self.affine:
149
flow.nn.init.ones_(self.weight)
150
flow.nn.init.zeros_(self.bias)
151
152
def
forward(self, input: Tensor) -> Tensor:
153
return
group_norm(
Callers
1
__init__
Method · 0.95
Calls
1
zeros_
Method · 0.80
Tested by
no test coverage detected