| 115 | } |
| 116 | |
| 117 | bool IsArrayConsumed(const Model& model, const string& name) { |
| 118 | if (GetOpWithInput(model, name)) { |
| 119 | return true; |
| 120 | } |
| 121 | if (IsOutputArray(model, name)) { |
| 122 | return true; |
| 123 | } |
| 124 | for (const auto& rnn_state : model.flags.rnn_states()) { |
| 125 | if (rnn_state.back_edge_source_array() == name) { |
| 126 | return true; |
| 127 | } |
| 128 | } |
| 129 | return false; |
| 130 | } |
| 131 | |
| 132 | int CountTrueOutputs(const Model& model, const Operator& op) { |
| 133 | int count = 0; |
no test coverage detected