Determines whether it is a hybrid op - one that has float inputs and quantized weights.
| 117 | // Determines whether it is a hybrid op - one that has float inputs and |
| 118 | // quantized weights. |
| 119 | inline bool IsHybridOp(const TfLiteTensor* input, const TfLiteTensor* weight) { |
| 120 | return ((weight->type == kTfLiteUInt8 || weight->type == kTfLiteInt8) && |
| 121 | input->type == kTfLiteFloat32); |
| 122 | } |
| 123 | |
| 124 | // Check dimensionality match and populate OpData for Conv and DepthwiseConv. |
| 125 | TfLiteStatus PopulateConvolutionQuantizationParams( |