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

Method __init__

diffusers/src/diffusers/models/activations.py:159–161  ·  view source on GitHub ↗
(self, dim_in: int, dim_out: int, bias: bool = True)

Source from the content-addressed store, hash-verified

157 """
158
159 def __init__(self, dim_in: int, dim_out: int, bias: bool = True):
160 super().__init__()
161 self.proj = nn.Linear(dim_in, dim_out, bias=bias)
162
163 def forward(self, x: torch.Tensor) -> torch.Tensor:
164 x = self.proj(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected