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

Method __init__

diffusers/src/diffusers/models/adapter.py:448–452  ·  view source on GitHub ↗
(self, channels: int)

Source from the content-addressed store, hash-verified

446 """
447
448 def __init__(self, channels: int):
449 super().__init__()
450 self.block1 = nn.Conv2d(channels, channels, kernel_size=3, padding=1)
451 self.act = nn.ReLU()
452 self.block2 = nn.Conv2d(channels, channels, kernel_size=1)
453
454 def forward(self, x: torch.Tensor) -> torch.Tensor:
455 r"""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected