MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / _weights_init

Method _weights_init

roach/models/torch_layers.py:69–72  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

67
68 @staticmethod
69 def _weights_init(m):
70 if isinstance(m, nn.Conv2d):
71 nn.init.xavier_uniform_(m.weight, gain=nn.init.calculate_gain('relu'))
72 nn.init.constant_(m.bias, 0.1)
73
74 def forward(self, birdview, state):
75 cnn_feature = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected