MCPcopy Create free account
hub / github.com/computational-imaging/bacon / forward

Method forward

modules.py:453–464  ·  view source on GitHub ↗
(self, model_input)

Source from the content-addressed store, hash-verified

451 return outputs
452
453 def forward(self, model_input):
454
455 coords = model_input['coords']
456
457 if self.integrated_pe:
458 coords = [self.pe(coords, r) for r in model_input['radii']]
459 elif self.nl != 'sine' and not self.no_pe:
460 coords = self.pe(coords)
461
462 output = self.net_forward(coords)
463
464 return {'model_in': model_input, 'model_out': {'output': output}}
465
466
467class CoordinateNet(nn.Module):

Callers

nothing calls this directly

Calls 1

net_forwardMethod · 0.95

Tested by

no test coverage detected