We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f3d8da commit d9cec81Copy full SHA for d9cec81
tensorflow/core/kernels/mkl/mkl_quantize_op.cc
@@ -496,7 +496,7 @@ class MklQuantizeV2Op : public OpKernel {
496
// Estimating scales for quantization.
497
const int num_bits = sizeof(T) * 8;
498
const float max_abs = std::max(std::abs(min_range), std::abs(max_range));
499
- const bool is_signed = std::is_signed<T>::value;
+ const bool is_signed = std::is_same<T, qint8>();
500
float target_range;
501
if (is_signed) {
502
max_range = max_abs;
0 commit comments