MCPcopy Index your code
hub / github.com/huggingface/diffusers / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

323 """
324
325 def __init__(
326 self,
327 in_channels: int,
328 out_channels: int,
329 ) -> None:
330 super().__init__()
331 self.in_channels = in_channels
332 self.out_channels = out_channels
333 self.deconv = nn.ConvTranspose2d(in_channels, out_channels, kernel_size=4, stride=2, padding=1)
334
335 def forward(self, x: torch.Tensor) -> torch.Tensor:
336 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