Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Kernels:
kernels-test
/
python-dep
like
0
Follow
Kernels Tests
9
Trusted publisher
Kernel card
Files
Files and versions
xet
Community
v1
python-dep
/
build
/
torch-cpu
/
__init__.py
danieldk
HF Staff
Build
4e8294d
25 days ago
raw
Copy download link
history
blame
179 Bytes
import
torch
from
._ops
import
ops
from
.op
import
_silu_and_mul
def
silu_and_mul
(
x: torch.Tensor
) -> torch.Tensor:
return
ops.silu_and_mul(x)
__all__ = [
"silu_and_mul"
]