def METHOD_NAME(self, input, input_q, index):
    if self.q_mixed_fp16 and self.q_start_bits[index] >= (self.q_target_bits - 1):
        input_q = input * self.quantize_real_ratio + (1 - self.quantize_real_ratio) * input_q
        return input_q
    return input_q