35 const auto input_index = cur_op->inputs()->operator[](0);
36 const auto input_to_input_weights_index = cur_op->inputs()->operator[](1);
37 const auto input_to_forget_weights_index = cur_op->inputs()->operator[](2);
38 const auto input_to_cell_weights_index = cur_op->inputs()->operator[](3);
39 const auto input_to_output_weights_index = cur_op->inputs()->operator[](4);
40 assert(input_index != -1);
42 assert(input_to_forget_weights_index != -1);
43 assert(input_to_cell_weights_index != -1);
44 assert(input_to_output_weights_index != -1);
51 const auto recurrent_to_input_weights_index = cur_op->inputs()->operator[](5);
52 const auto recurrent_to_forget_weights_index = cur_op->inputs()->operator[](6);
53 const auto recurrent_to_cell_weights_index = cur_op->inputs()->operator[](7);
54 const auto recurrent_to_output_weights_index = cur_op->inputs()->operator[](8);
56 assert(recurrent_to_forget_weights_index != -1);
57 assert(recurrent_to_cell_weights_index != -1);
58 assert(recurrent_to_output_weights_index != -1);
64 const auto cell_to_input_weights_index = cur_op->inputs()->operator[](9);
65 const auto cell_to_forget_weights_index = cur_op->inputs()->operator[](10);
66 const auto cell_to_output_weights_index = cur_op->inputs()->operator[](11);
74 const auto input_gate_bias_index = cur_op->inputs()->operator[](12);
75 const auto forget_gate_bias_index = cur_op->inputs()->operator[](13);
76 const auto cell_gate_bias_index = cur_op->inputs()->operator[](14);
77 const auto output_gate_bias_index = cur_op->inputs()->operator[](15);
79 assert(forget_gate_bias_index != -1);
80 assert(cell_gate_bias_index != -1);
81 assert(output_gate_bias_index != -1);
87 const auto projection_weights_index = cur_op->inputs()->operator[](16);
88 const auto projection_bias_index = cur_op->inputs()->operator[](17);
94 const auto output_state_index = cur_op->inputs()->operator[](18);
95 const auto cell_state_index = cur_op->inputs()->operator[](19);
96 assert(output_state_index != -1);
97 assert(cell_state_index != -1);
101 const auto input_layer_norm_coefficients_index = cur_op->inputs()->operator[](20);
102 const auto forget_layer_norm_coefficients_index = cur_op->inputs()->operator[](21);
103 const auto cell_layer_norm_coefficients_index = cur_op->inputs()->operator[](22);
104 const auto output_layer_norm_coefficients_index = cur_op->inputs()->operator[](23);
109 internal_tensors[20] =
111 internal_tensors[21] =
113 internal_tensors[22] =
115 internal_tensors[23] =
118 const auto output_index = cur_op->outputs()->operator[](0);
119 assert(output_index != -1);
122 options = cur_op->builtin_options_as_UnidirectionalSequenceLSTMOptions();