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

Method __init__

diffusers/src/diffusers/models/autoencoders/vae.py:361–369  ·  view source on GitHub ↗
(
        self,
        in_channels: int,
        out_channels: int,
    )

Source from the content-addressed store, hash-verified

359 """
360
361 def __init__(
362 self,
363 in_channels: int,
364 out_channels: int,
365 ) -> None:
366 super().__init__()
367 self.in_channels = in_channels
368 self.out_channels = out_channels
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."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected