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

Method forward

diffusers/src/diffusers/models/activations.py:61–62  ·  view source on GitHub ↗
(self, inputs: torch.Tensor)

Source from the content-addressed store, hash-verified

59 super().__init__()
60
61 def forward(self, inputs: torch.Tensor) -> torch.Tensor:
62 return F.silu(inputs.float(), inplace=False).to(inputs.dtype)
63
64
65class GELU(nn.Module):

Callers

nothing calls this directly

Calls 1

toMethod · 0.45

Tested by

no test coverage detected