| 90 | } |
| 91 | |
| 92 | inline const TfLiteTensor* GetOptionalInputTensor(TfLiteContext* context, |
| 93 | const TfLiteNode* node, |
| 94 | int index) { |
| 95 | return GetInput(context, const_cast<TfLiteNode*>(node), index); |
| 96 | } |
| 97 | |
| 98 | // Determines whether tensor is constant. |
| 99 | inline bool IsConstantTensor(const TfLiteTensor* tensor) { |
no test coverage detected