MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / forward

Method forward

tok/mm_autoencoder.py:59–64  ·  view source on GitHub ↗
(self, x, args={})

Source from the content-addressed store, hash-verified

57
58 @torch.inference_mode()
59 def forward(self, x, args={}):
60 encoder_x = self.encoder(x.to(self.encoder.dtype))['encoded']
61 ar_indices = self.ar_sample(encoder_x, args)
62 decoder_x = self.decoder.decode_from_bottleneck(ar_indices)
63 x = self.post_process(decoder_x)
64 return x

Callers

nothing calls this directly

Calls 3

ar_sampleMethod · 0.95
post_processMethod · 0.95

Tested by

no test coverage detected