Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/huggingface/diffusers
/ __init__
Method
__init__
src/diffusers/models/activations.py:58–59 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
56
""
"
57
58
def
__init__(self):
59
super().__init__()
60
61
def
forward(self, inputs: torch.Tensor) -> torch.Tensor:
62
return
F.silu(inputs.float(), inplace=False).to(inputs.dtype)
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected