diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-01-23 17:35:53 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-01-23 17:40:21 -0800 |
commit | 6dfe00ca4114371ed47c93810219736e3deda2d2 (patch) | |
tree | 14262ad0f7b3e212c0e2d84a480c383a4074031f /tensorflow/contrib/lite/builtin_op_data.h | |
parent | a3e81ec2892126056ad6c1feb9161bc16c2c2975 (diff) |
Support StridedSlice in TFLite for 1D-4D tensors.
PiperOrigin-RevId: 183020501
Diffstat (limited to 'tensorflow/contrib/lite/builtin_op_data.h')
-rw-r--r-- | tensorflow/contrib/lite/builtin_op_data.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tensorflow/contrib/lite/builtin_op_data.h b/tensorflow/contrib/lite/builtin_op_data.h index 3b43a1fd5d..ab07c58c92 100644 --- a/tensorflow/contrib/lite/builtin_op_data.h +++ b/tensorflow/contrib/lite/builtin_op_data.h @@ -88,7 +88,9 @@ typedef struct { TfLiteFusedActivation activation; } TfLiteSequenceRNNParams; -typedef struct { TfLiteFusedActivation activation; } TfLiteFullyConnectedParams; +typedef struct { + TfLiteFusedActivation activation; +} TfLiteFullyConnectedParams; typedef enum { kTfLiteLshProjectionUnknown = 0, @@ -96,9 +98,13 @@ typedef enum { kTfLiteLshProjectionDense = 2, } TfLiteLSHProjectionType; -typedef struct { TfLiteLSHProjectionType type; } TfLiteLSHProjectionParams; +typedef struct { + TfLiteLSHProjectionType type; +} TfLiteLSHProjectionParams; -typedef struct { float beta; } TfLiteSoftmaxParams; +typedef struct { + float beta; +} TfLiteSoftmaxParams; typedef struct { int axis; @@ -226,6 +232,14 @@ typedef struct { int num_squeeze_dims; } TfLiteSqueezeParams; +typedef struct { + int begin_mask; + int end_mask; + int ellipsis_mask; + int new_axis_mask; + int shrink_axis_mask; +} TfLiteStridedSliceParams; + #ifdef __cplusplus } // extern "C" #endif // __cplusplus |