There was an error while loading. Please reload this page.
1 parent 77b1f38 commit 325974fCopy full SHA for 325974f
1 file changed
src/flag_gems/ops/sort.py
@@ -3,7 +3,6 @@
3
import torch
4
import triton
5
import triton.language as tl
6
-from triton.language.core import _unwrap_if_constexpr
7
8
from ..runtime import torch_device_fn
9
from ..utils import libentry
@@ -14,20 +13,16 @@
14
13
15
@tl.constexpr
16
def get_int_t(num_bits: tl.constexpr, signed: tl.constexpr) -> tl.dtype:
17
- num_bits = _unwrap_if_constexpr(num_bits)
18
- signed = _unwrap_if_constexpr(signed)
19
return tl.core.get_int_dtype(num_bits, signed)
20
21
22
23
def one_zeros(num_bits: tl.constexpr) -> int:
24
25
return 1 << (num_bits - 1)
26
27
28
29
def zero_ones(num_bits: tl.constexpr) -> int:
30
31
return (1 << (num_bits - 1)) - 1
32
33
0 commit comments