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

Method _forward_impl

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

Source from the content-addressed store, hash-verified

498 drop_path) if drop_path > 0. else nn.Identity()
499
500 def _forward_impl(self, x, relative_pos_enc=None):
501 # x = x + self.pos_embed(x)
502 x = x + self.drop_path(self.token_mixer(self.norm1(x), relative_pos_enc))
503 x = x + self.drop_path(self.mlp(self.norm2(x)))
504 return x
505
506 def forward(self, x, relative_pos_enc=None):
507 if self.grad_checkpoint and x.requires_grad:

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected