MCPcopy Create free account
hub / github.com/OpenDriveLab/OccNet / __init__

Method __init__

projects/mmdet3d_plugin/models/backbones/vovnet.py:157–159  ·  view source on GitHub ↗
(self, inplace=True)

Source from the content-addressed store, hash-verified

155
156class Hsigmoid(nn.Module):
157 def __init__(self, inplace=True):
158 super(Hsigmoid, self).__init__()
159 self.inplace = inplace
160
161 def forward(self, x):
162 return F.relu6(x + 3.0, inplace=self.inplace) / 6.0

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected