| 117 | } |
| 118 | |
| 119 | bool IsFloatOperator(const TfLiteContext* context, const TfLiteNode* node) { |
| 120 | const auto input_type = context->tensors[node->inputs->data[0]].type; |
| 121 | return IsFloat(input_type); |
| 122 | } |
| 123 | |
| 124 | bool IsFloatOrUint8Operator(const TfLiteContext* context, |
| 125 | const TfLiteNode* node) { |