Determines whether tensor is constant.
| 97 | |
| 98 | // Determines whether tensor is constant. |
| 99 | inline bool IsConstantTensor(const TfLiteTensor* tensor) { |
| 100 | return tensor->allocation_type == kTfLiteMmapRo; |
| 101 | } |
| 102 | |
| 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. |
no outgoing calls
no test coverage detected