Skip to content

Commit c3cded7

Browse files
authored
Automated sync from github.com/tensorflow/tensorflow (#3097)
BUG=automated sync from upstream NO_CHECK_TFLITE_FILES=automated sync from upstream
1 parent a5f2923 commit c3cded7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tensorflow/lite/core/c/common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,11 @@ typedef struct TfLiteBFloat16 {
322322
const char* TfLiteTypeGetName(TfLiteType type);
323323

324324
/// SupportedQuantizationTypes.
325+
#ifdef __cplusplus
325326
typedef enum TfLiteQuantizationType : int {
327+
#else
328+
typedef enum TfLiteQuantizationType {
329+
#endif
326330
/// No quantization.
327331
kTfLiteNoQuantization = 0,
328332
/// Affine quantization (with support for per-channel quantization).

0 commit comments

Comments
 (0)