Fix the check to accept Int8 format as well for Bidi-LSTM.
PiperOrigin-RevId: 244393844
This commit is contained in:
parent
1dca7db621
commit
43758242b3
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user