diff options
author | 2018-09-05 16:00:28 -0700 | |
---|---|---|
committer | 2018-09-05 16:05:30 -0700 | |
commit | b744cc00e1522d50463e2b681beae39cbb6f4d16 (patch) | |
tree | 45d7c269a0c5ec7d31a4304b32f6bf9ef621b420 /tensorflow/contrib/lite/builtin_op_data.h | |
parent | b98d33daa08781d5b55a3c583f62e5753dc1da51 (diff) |
Fix several build warnings in TFLite
PiperOrigin-RevId: 211715608
Diffstat (limited to 'tensorflow/contrib/lite/builtin_op_data.h')
-rw-r--r-- | tensorflow/contrib/lite/builtin_op_data.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/builtin_op_data.h b/tensorflow/contrib/lite/builtin_op_data.h index e81f9e4f51..aecd71910c 100644 --- a/tensorflow/contrib/lite/builtin_op_data.h +++ b/tensorflow/contrib/lite/builtin_op_data.h @@ -25,6 +25,11 @@ extern "C" { // TODO(aselle): Consider using "if this then that" for testing. +// Useful placeholder to put in otherwise empty structs to avoid size warnings. +typedef struct { + char dummy_; +} EmptyStructPlaceholder; + // Possible padding types (for convolutions) typedef enum { kTfLitePaddingUnknown = 0, @@ -129,9 +134,11 @@ typedef struct { } TfLiteAddParams; typedef struct { + EmptyStructPlaceholder placeholder_; } TfLiteSpaceToBatchNDParams; typedef struct { + EmptyStructPlaceholder placeholder_; } TfLiteBatchToSpaceNDParams; typedef struct { @@ -178,9 +185,11 @@ typedef struct { } TfLiteResizeBilinearParams; typedef struct { + EmptyStructPlaceholder placeholder_; } TfLitePadParams; typedef struct { + EmptyStructPlaceholder placeholder_; } TfLitePadV2Params; typedef struct { @@ -220,6 +229,7 @@ typedef struct { } TfLiteGatherParams; typedef struct { + EmptyStructPlaceholder placeholder_; } TfLiteTransposeParams; typedef struct { |