Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionLearningGroup/OVANet
/ weights_init
Method
weights_init
models/basenet.py:109–110 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
107
norm = w.norm(p=2, dim=1, keepdim=True)
108
self.fc.weight.data = w.div(norm.expand_as(w))
109
def
weights_init(self):
110
self.fc.weight.data.normal_(0.0, 0.1)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected