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

Method forward

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

Source from the content-addressed store, hash-verified

55 self.latent_warp = latent_warp_from_config(latent_warp, device=device)
56
57 def forward(self, batch: AttrDict, options: Optional[AttrDict] = None) -> AttrDict:
58 h = self.encode_to_bottleneck(batch, options=options)
59 return self.bottleneck_to_params(h, options=options)
60
61 def encode_to_bottleneck(
62 self, batch: AttrDict, options: Optional[AttrDict] = None

Callers

nothing calls this directly

Calls 2

encode_to_bottleneckMethod · 0.95
bottleneck_to_paramsMethod · 0.95

Tested by

no test coverage detected