diff options
Diffstat (limited to 'tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc')
-rw-r--r-- | tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc b/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc index eca717680a..8e66323bd7 100644 --- a/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc +++ b/tensorflow/contrib/lite/toco/graph_transformations/identify_lstm_split_inputs.cc @@ -138,10 +138,9 @@ bool SplitLstmCellInputs::Run(Model* model, std::size_t op_index) { CreateOptionalArray(model, &(lstm_cell_op->inputs[kProjectionBiasTensor]), base_name + "proj_bias"); - // Reorder LstmCell's outputs. - lstm_cell_op->outputs.resize(LstmCellOperator::NUM_OUTPUTS); - lstm_cell_op->outputs[kScratchBufferTensor] = - curr_op->outputs[LstmCellOperator::CONCAT_TEMP]; + // Reorder and resize LstmCell's outputs. + lstm_cell_op->outputs.resize( + ExtendedLstmCellOutputs::kExtendedLstmOutputCount); lstm_cell_op->outputs[kOutputStateTensor] = curr_op->outputs[LstmCellOperator::ACTIV_TEMP]; lstm_cell_op->outputs[kCellStateTensor] = |