MCPcopy Create free account
hub / github.com/buaacxf/VIPTR / forward

Method forward

modules/VIPTRv1.py:506–511  ·  view source on GitHub ↗
(self, x, relative_pos_enc=None)

Source from the content-addressed store, hash-verified

504 return x
505
506 def forward(self, x, relative_pos_enc=None):
507 if self.grad_checkpoint and x.requires_grad:
508 x = checkpoint.checkpoint(self._forward_impl, x, relative_pos_enc)
509 else:
510 x = self._forward_impl(x, relative_pos_enc)
511 return x
512
513
514class RetBlock(nn.Module):

Callers

nothing calls this directly

Calls 1

_forward_implMethod · 0.95

Tested by

no test coverage detected