Coverage for src/flag_gems/ops/bitwise_right_shift.py: 80%

10 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2026-03-19 02:32 +0800

1import logging 

2 

3import triton 

4 

5from flag_gems.utils import pointwise_dynamic 

6 

7logger = logging.getLogger(__name__) 

8 

9 

10@pointwise_dynamic(promotion_methods=[(0, 1, "DEFAULT")]) 

11@triton.jit 

12def bitwise_right_shift_kernel(a, b): 

13 return a >> b 

14 

15 

16def bitwise_right_shift(self, other, *, out=None): 

17 return bitwise_right_shift_kernel(self, other, out=out)