MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsHybridOp

Function IsHybridOp

tensorflow/lite/kernels/kernel_util.h:119–122  ·  view source on GitHub ↗

Determines whether it is a hybrid op - one that has float inputs and quantized weights.

Source from the content-addressed store, hash-verified

117// Determines whether it is a hybrid op - one that has float inputs and
118// quantized weights.
119inline 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.
125TfLiteStatus PopulateConvolutionQuantizationParams(

Callers 7

PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected