MCPcopy Create free account
hub / github.com/TRI-ML/dd3d / __init__

Method __init__

tridet/layers/normalization.py:14–16  ·  view source on GitHub ↗
(self, init_value=1.0)

Source from the content-addressed store, hash-verified

12
13class Scale(nn.Module):
14 def __init__(self, init_value=1.0):
15 super(Scale, self).__init__()
16 self.scale = nn.Parameter(torch.FloatTensor([init_value]))
17
18 def forward(self, input):
19 return input * self.scale

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected