Update utils.py
This commit is contained in:
parent
ce372704ff
commit
d11050ae90
1 changed files with 1 additions and 1 deletions
|
|
@ -31,12 +31,12 @@ pass
|
|||
# tl.math.tanh now is libdevice.tanh
|
||||
from packaging.version import Version
|
||||
import triton
|
||||
import triton.language as tl
|
||||
if Version(triton.__version__) >= Version("3.0.0"):
|
||||
from triton.language.extra import libdevice
|
||||
triton_tanh = libdevice.tanh
|
||||
triton_cast = tl.cast
|
||||
else:
|
||||
import triton.language as tl
|
||||
triton_tanh = tl.math.tanh
|
||||
# No casting in old Triton versions
|
||||
@triton.jit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue