MCPcopy
hub / github.com/zai-org/CogVideo / forward

Method forward

sat/sgm/modules/autoencoding/magvit2_pytorch.py:469–473  ·  view source on GitHub ↗
(self, x: Tensor, *, cond: Optional[Tensor] = None)

Source from the content-addressed store, hash-verified

467
468 @beartype
469 def forward(self, x: Tensor, *, cond: Optional[Tensor] = None):
470 maybe_cond_kwargs = dict(cond=cond) if exists(cond) else dict()
471
472 x = self.norm(x, **maybe_cond_kwargs)
473 return self.net(x)
474
475
476# discriminator with anti-aliased downsampling (blurpool Zhang et al.)

Callers

nothing calls this directly

Calls 1

existsFunction · 0.70

Tested by

no test coverage detected