MCPcopy Index your code
hub / github.com/huggingface/diffusers / __init__

Method __init__

src/diffusers/models/activations.py:170–174  ·  view source on GitHub ↗
(self, dim_in: int, dim_out: int, bias: bool = True, activation: str = "silu")

Source from the content-addressed store, hash-verified

168
169class LinearActivation(nn.Module):
170 def __init__(self, dim_in: int, dim_out: int, bias: bool = True, activation: str = "silu"):
171 super().__init__()
172
173 self.proj = nn.Linear(dim_in, dim_out, bias=bias)
174 self.activation = get_activation(activation)
175
176 def forward(self, hidden_states):
177 hidden_states = self.proj(hidden_states)

Callers

nothing calls this directly

Calls 2

get_activationFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected