MCPcopy 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
131def leaky_relu(x):
132 return tl.where(x >= 0, x, 0.01 * x)
133
134
135def matmul(a, b, activation=""):

Callers 1

matmul_kernelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected