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

Method encode

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

Source from the content-addressed store, hash-verified

35 return x
36
37 def encode(self, x):
38 return self.encoder(x.to(self.encoder.dtype))['encoded']
39
40 def get_encoder_indices(self, x):
41 # img -> encoder -> indices

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected