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

Method __init__

diffusers/src/diffusers/models/activations.py:137–140  ·  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 self.proj = nn.Linear(dim_in, dim_out * 2, bias=bias)
140 self.activation = nn.SiLU()
141
142 def forward(self, hidden_states):
143 hidden_states = self.proj(hidden_states)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected