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

Method encode_to_vector

shap_e/models/transmitter/base.py:113–114  ·  view source on GitHub ↗
(self, batch: AttrDict, options: Optional[AttrDict] = None)

Source from the content-addressed store, hash-verified

111 """
112
113 def encode_to_vector(self, batch: AttrDict, options: Optional[AttrDict] = None) -> torch.Tensor:
114 return self.encode_to_channels(batch, options=options).flatten(1)
115
116 def bottleneck_to_channels(
117 self, vector: torch.Tensor, options: Optional[AttrDict] = None

Callers

nothing calls this directly

Calls 1

encode_to_channelsMethod · 0.95

Tested by

no test coverage detected