MCPcopy Create free account
hub / github.com/Totoro97/NeuS / __init__

Method __init__

models/fields.py:258–260  ·  view source on GitHub ↗
(self, init_val)

Source from the content-addressed store, hash-verified

256
257class SingleVarianceNetwork(nn.Module):
258 def __init__(self, init_val):
259 super(SingleVarianceNetwork, self).__init__()
260 self.register_parameter('variance', nn.Parameter(torch.tensor(init_val)))
261
262 def forward(self, x):
263 return torch.ones([len(x), 1]) * torch.exp(self.variance * 10.0)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected