Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PolymathicAI/AstroCLIP
/ reset_parameters
Method
reset_parameters
astroclip/modules.py:285–288 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
283
self.reset_parameters()
284
285
def
reset_parameters(self):
286
torch.nn.init.ones_(self.weight)
287
if
self.bias is not None:
288
torch.nn.init.zeros_(self.bias)
289
290
def
forward(self, input):
291
return
F.layer_norm(
Callers
1
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected