MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / forward

Method forward

diffusers/src/diffusers/models/autoencoders/vae.py:371–375  ·  view source on GitHub ↗

r"""The forward method of the `UpSample` class.

(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

369 self.deconv = nn.ConvTranspose2d(in_channels, out_channels, kernel_size=4, stride=2, padding=1)
370
371 def forward(self, x: torch.Tensor) -> torch.Tensor:
372 r"""The forward method of the `UpSample` class."""
373 x = torch.relu(x)
374 x = self.deconv(x)
375 return x
376
377
378class MaskConditionEncoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected