We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b59cd03 commit 317638eCopy full SHA for 317638e
src/plugins/intel_gpu/src/kernel_selector/cl_kernels/dynamic_quantize_gpu_ref.cl
@@ -104,7 +104,7 @@ KERNEL(dynamic_quantize_gpu_ref)(
104
105
#if ASYMMETRIC_QUANTIZATION
106
// If the range of input data is zero, it is adjusted to the minimum value(0.001).
107
- half diff_value = max_val == min_val ? (grp_max) : (max_val - min_val);
+ ACCUMULATOR_TYPE diff_value = max_val == min_val ? (grp_max) : (max_val - min_val);
108
ACCUMULATOR_TYPE scale_tmp = (ACCUMULATOR_TYPE)((CHAR_MAX - CHAR_MIN) / diff_value);
109
# if UNSIGNED_OUTPUT
110
ACCUMULATOR_TYPE zp_tmp = (ACCUMULATOR_TYPE)(-min_val * scale_tmp);
0 commit comments