Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FlashSampling/FlashSampling
/ leaky_relu
Function
leaky_relu
src/fused_mm_sampling/tl_matmul.py:131–132 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
129
# We can fuse `leaky_relu` by providing it as an `ACTIVATION` meta-parameter in `matmul_kernel`.
130
@triton.jit
131
def
leaky_relu(x):
132
return
tl.where(x >= 0, x, 0.01 * x)
133
134
135
def
matmul(a, b, activation=
""
):
Callers
1
matmul_kernel
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected