Get a pointer to an operation and registration data structure if in bounds.
| 195 | |
| 196 | // Get a pointer to an operation and registration data structure if in bounds. |
| 197 | const std::pair<TfLiteNode, TfLiteRegistration>* node_and_registration( |
| 198 | int node_index) const { |
| 199 | if (node_index < 0 || static_cast<size_t>(node_index) >= nodes_size()) |
| 200 | return nullptr; |
| 201 | return &nodes_and_registration_[node_index]; |
| 202 | } |
| 203 | |
| 204 | // Change the dimensionality of a given tensor. Note, this is only acceptable |
| 205 | // for tensor indices that are inputs. |
no outgoing calls