@triton.jit
def _DequantUint8Window_impl(input_ptr, output_ptr, numel, window,
    BLOCK_SIZE: tl.constexpr):
    tid = tl.program_id(0)
    input_ptr += tid * BLOCK_SIZE
    output_ptr += tid * BLOCK_SIZE
    offset = tl.arange(0, BLOCK_SIZE)
    mask = offset < numel - tid * BLOCK_SIZE
    input = tl.load(input_ptr + offset, mask=mask).to(tl.float32)
    input = input * (2 * window / 255) - window
    tl.store(output_ptr + offset, input, mask=mask)
