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

Method forward

diffusers/src/diffusers/models/activations.py:163–165  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

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)
165 return x * torch.sigmoid(1.702 * x)

Callers

nothing calls this directly

Calls 1

sigmoidMethod · 0.80

Tested by

no test coverage detected