Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/kernl/implementations/activation_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@triton.jit
def tanh(x):
"""Tanh activation function"""
return tl.libdevice.tanh(x)
return tl.math.tanh(x)


@triton.jit
Expand All @@ -46,4 +46,4 @@ def fast_gelu(x):
@triton.jit
def gelu(x):
"""Gaussian Error Linear Unit (GELU)"""
return x * 0.5 * (1.0 + tl.libdevice.erf(x / sqrt2))
return x * 0.5 * (1.0 + tl.math.erf(x / sqrt2))