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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected