Fix the check to accept Int8 format as well for Bidi-LSTM.

PiperOrigin-RevId: 244393844
This commit is contained in:
A. Unique TensorFlower 2019-04-19 11:36:45 -07:00 committed by TensorFlower Gardener
parent 1dca7db621
commit 43758242b3

View File

@ -185,6 +185,7 @@ TfLiteStatus CheckLstmTensorDimensionsAndTypes(
TF_LITE_ENSURE_EQ(context, input_to_forget_weights->dims->data[0], n_cell);
TF_LITE_ENSURE_EQ(context, input_to_forget_weights->dims->data[1], n_input);
TF_LITE_ENSURE(context, (input_to_forget_weights->type == kTfLiteFloat32) ||
(input_to_forget_weights->type == kTfLiteInt8) ||
(input_to_forget_weights->type == kTfLiteUInt8));
const TfLiteTensor* input_to_input_weights =