Remove unused variables.
PiperOrigin-RevId: 291812437
Change-Id: I2971736715cc5e816c2164bedd69705c34c0fa96
diff --git a/tensorflow/lite/kernels/lstm_test.cc b/tensorflow/lite/kernels/lstm_test.cc
index 137802b..6c00fc8 100644
--- a/tensorflow/lite/kernels/lstm_test.cc
+++ b/tensorflow/lite/kernels/lstm_test.cc
@@ -43,8 +43,7 @@
n_input_(n_input),
n_cell_(n_cell),
n_output_(n_output),
- weight_type_(weight_type),
- is_layer_norm_(is_layer_norm) {
+ weight_type_(weight_type) {
input_ = AddInput(TensorType_FLOAT32);
if (use_cifg) {
@@ -314,7 +313,6 @@
}
const TensorType weight_type_;
- const bool is_layer_norm_;
};
class BaseLstmTest : public ::testing::Test {
diff --git a/tensorflow/lite/kernels/strided_slice.cc b/tensorflow/lite/kernels/strided_slice.cc
index 9a6ffec..fb9efcc 100644
--- a/tensorflow/lite/kernels/strided_slice.cc
+++ b/tensorflow/lite/kernels/strided_slice.cc
@@ -59,10 +59,6 @@
int dims;
};
-// This Op only supports 1-4D cases and since we use the reference 4D
-// implementation, the 1-3D tensors are mapped to 4D.
-const int kMaxDim = 4;
-
StridedSliceParams BuildStridedSliceParams(StridedSliceContext* op_context) {
StridedSliceParams op_params;
op_params.start_indices_count = op_context->dims;