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

Method forward

modules/VIPTRv2.py:498–503  ·  view source on GitHub ↗
(self, x, relative_pos_enc=None)

Source from the content-addressed store, hash-verified

496 return x
497
498 def forward(self, x, relative_pos_enc=None):
499 if self.grad_checkpoint and x.requires_grad:
500 x = checkpoint.checkpoint(self._forward_impl, x, relative_pos_enc)
501 else:
502 x = self._forward_impl(x, relative_pos_enc)
503 return x
504
505class RetBlock(nn.Module):
506

Callers

nothing calls this directly

Calls 1

_forward_implMethod · 0.95

Tested by

no test coverage detected