MCPcopy Create free account
hub / github.com/MoyGcc/vid2avatar / forward

Method forward

preprocessing/preprocessing_utils.py:216–219  ·  view source on GitHub ↗
(self, residual)

Source from the content-addressed store, hash-verified

214 return 'rho = {}'.format(self.rho)
215
216 def forward(self, residual):
217 squared_res = residual ** 2
218 dist = torch.div(squared_res, squared_res + self.rho ** 2)
219 return self.rho ** 2 * dist
220
221class PerspectiveCamera(nn.Module):
222

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected