MCPcopy
hub / github.com/facebookresearch/encodec / forward

Method forward

encodec/model.py:189–191  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

187 return out
188
189 def forward(self, x: torch.Tensor) -> torch.Tensor:
190 frames = self.encode(x)
191 return self.decode(frames)[:, :, :x.shape[-1]]
192
193 def set_target_bandwidth(self, bandwidth: float):
194 if bandwidth not in self.target_bandwidths:

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.95
decodeMethod · 0.95

Tested by

no test coverage detected