From aedbe7286d0618fa580c08a1465fc7d8b6dfdd0a Mon Sep 17 00:00:00 2001 From: TFLM-bot Date: Thu, 17 Apr 2025 14:02:40 +0000 Subject: [PATCH] Sync from upstream TF. --- tensorflow/lite/core/c/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tensorflow/lite/core/c/common.h b/tensorflow/lite/core/c/common.h index 57caa3b759a..3f1fe32b8b4 100644 --- a/tensorflow/lite/core/c/common.h +++ b/tensorflow/lite/core/c/common.h @@ -322,7 +322,11 @@ typedef struct TfLiteBFloat16 { const char* TfLiteTypeGetName(TfLiteType type); /// SupportedQuantizationTypes. +#ifdef __cplusplus typedef enum TfLiteQuantizationType : int { +#else +typedef enum TfLiteQuantizationType { +#endif /// No quantization. kTfLiteNoQuantization = 0, /// Affine quantization (with support for per-channel quantization).