MCPcopy Create free account
hub / github.com/catalys1/mae-pytorch / forward_features

Method forward_features

mae.py:230–236  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

228 return x
229
230 def forward_features(self, x: torch.Tensor):
231 x = self.embed(x)
232 x = x + self.pos_encoder
233 x = self.mask_input(x)
234 x = self.encoder(x)
235
236 return x
237
238 def forward(self, x: torch.Tensor):
239 x = self.forward_features(x)

Callers 1

forwardMethod · 0.95

Calls 2

embedMethod · 0.95
mask_inputMethod · 0.95

Tested by

no test coverage detected