Determines whether tensor is dynamic. Note that a tensor can be non-const and not dynamic. This function specifically checks for a dynamic tensor.
| 103 | // Determines whether tensor is dynamic. Note that a tensor can be non-const and |
| 104 | // not dynamic. This function specifically checks for a dynamic tensor. |
| 105 | inline bool IsDynamicTensor(const TfLiteTensor* tensor) { |
| 106 | return tensor->allocation_type == kTfLiteDynamic; |
| 107 | } |
| 108 | |
| 109 | // Sets tensor to dynamic. |
| 110 | inline void SetTensorToDynamic(TfLiteTensor* tensor) { |