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

Method get_encoder_indices

tok/mm_autoencoder.py:40–42  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

38 return self.encoder(x.to(self.encoder.dtype))['encoded']
39
40 def get_encoder_indices(self, x):
41 # img -> encoder -> indices
42 return self.encoder(x.to(self.encoder.dtype))['bottleneck_rep']
43
44 @torch.inference_mode()
45 def decode_from_encoder_indices(self, indices, args={}):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected