MCPcopy Create free account
hub / github.com/huggingface/diffusers / __init__

Method __init__

src/diffusers/models/upsampling.py:376–388  ·  view source on GitHub ↗
(
        self,
        in_channels: int,
        out_channels: int,
        kernel_size: int = 3,
        stride: int = 1,
        padding: int = 1,
        compress_time: bool = False,
    )

Source from the content-addressed store, hash-verified

374 """
375
376 def __init__(
377 self,
378 in_channels: int,
379 out_channels: int,
380 kernel_size: int = 3,
381 stride: int = 1,
382 padding: int = 1,
383 compress_time: bool = False,
384 ) -> None:
385 super().__init__()
386
387 self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=kernel_size, stride=stride, padding=padding)
388 self.compress_time = compress_time
389
390 def forward(self, inputs: torch.Tensor) -> torch.Tensor:
391 if self.compress_time:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected