MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / weight_init

Function weight_init

models/ots.py:9–12  ·  view source on GitHub ↗
(module: nn.Module)

Source from the content-addressed store, hash-verified

7
8
9def weight_init(module: nn.Module) -> None:
10 nn.init.kaiming_normal_(module.weight, mode="fan_out", nonlinearity="relu")
11 if module.bias is not None: # pyre-ignore
12 nn.init.constant_(module.bias, 0)
13
14
15class Obj_Attn_Block(Module):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected