| 73 | // Returns true if at least one tensor in the given list is kTfLiteDynamic. |
| 74 | template <typename TensorIntArray> |
| 75 | bool HasDynamicTensorImpl(const TfLiteContext& context, |
| 76 | const TensorIntArray& int_array) { |
| 77 | for (int i : int_array) { |
| 78 | const TfLiteTensor& tensor = context.tensors[i]; |
| 79 | if (tensor.allocation_type == kTfLiteDynamic) { |
| 80 | return true; |
| 81 | } |
| 82 | } |
| 83 | return false; |
| 84 | } |
| 85 | |
| 86 | bool HasDynamicTensor(const TfLiteContext& context, |
| 87 | const TfLiteIntArray* int_array) { |
no outgoing calls
no test coverage detected