aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/c
diff options
context:
space:
mode:
authorGravatar Suharsh Sivakumar <suharshs@google.com>2018-09-13 15:01:08 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-13 15:09:10 -0700
commitfb50c8e9a3cb2ccfac9cf4a847d5841cba80b524 (patch)
tree969d44684c674fad7ef775323f6e150e616890d9 /tensorflow/contrib/lite/c
parente8af4e1bb9496c111530e88263fb1b8dac8bdde9 (diff)
Dilated Depthwise Conv reference implementations.
PiperOrigin-RevId: 212884951
Diffstat (limited to 'tensorflow/contrib/lite/c')
-rw-r--r--tensorflow/contrib/lite/c/builtin_op_data.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/c/builtin_op_data.h b/tensorflow/contrib/lite/c/builtin_op_data.h
index fa43e6a024..be9d551ee4 100644
--- a/tensorflow/contrib/lite/c/builtin_op_data.h
+++ b/tensorflow/contrib/lite/c/builtin_op_data.h
@@ -25,6 +25,9 @@ extern "C" {
// TODO(aselle): Consider using "if this then that" for testing.
+// IMPORTANT: All new members of structs must be added at the end to ensure
+// backwards compatibility.
+
// Possible padding types (for convolutions)
typedef enum {
kTfLitePaddingUnknown = 0,
@@ -71,11 +74,15 @@ typedef struct {
} TfLitePoolParams;
typedef struct {
+ // Parameters for DepthwiseConv version 1 or above.
TfLitePadding padding;
int stride_width;
int stride_height;
int depth_multiplier;
TfLiteFusedActivation activation;
+ // Parameters for DepthwiseConv version 2 or above.
+ int dilation_width_factor;
+ int dilation_height_factor;
} TfLiteDepthwiseConvParams;
typedef struct {