MCPcopy Create free account
hub / github.com/openai/shap-e / encode_to_vector

Method encode_to_vector

shap_e/models/transmitter/base.py:70–73  ·  view source on GitHub ↗

Encode the batch into a single latent vector.

(self, batch: AttrDict, options: Optional[AttrDict] = None)

Source from the content-addressed store, hash-verified

68
69 @abstractmethod
70 def encode_to_vector(self, batch: AttrDict, options: Optional[AttrDict] = None) -> torch.Tensor:
71 """
72 Encode the batch into a single latent vector.
73 """
74
75 def bottleneck_to_params(
76 self, vector: torch.Tensor, options: Optional[AttrDict] = None

Callers 1

encode_to_bottleneckMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected