Skip to content

Commit

Permalink
Fix Windows compilation issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdfaijul committed Apr 19, 2024
1 parent 0f3d8da commit d9cec81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/core/kernels/mkl/mkl_quantize_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class MklQuantizeV2Op : public OpKernel {
// Estimating scales for quantization.
const int num_bits = sizeof(T) * 8;
const float max_abs = std::max(std::abs(min_range), std::abs(max_range));
const bool is_signed = std::is_signed<T>::value;
const bool is_signed = std::is_same<T, qint8>();
float target_range;
if (is_signed) {
max_range = max_abs;
Expand Down

0 comments on commit d9cec81

Please sign in to comment.