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

Method __init__

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

Source from the content-addressed store, hash-verified

135 """
136
137 def __init__(self, dim_in: int, dim_out: int, bias: bool = True):
138 super().__init__()
139
140 self.proj = nn.Linear(dim_in, dim_out * 2, bias=bias)
141 self.activation = nn.SiLU()
142
143 def forward(self, hidden_states):
144 hidden_states = self.proj(hidden_states)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected