We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 857f467 commit 5e7ea29Copy full SHA for 5e7ea29
tensorflow/lite/micro/kernels/add_common.cc
@@ -39,6 +39,8 @@ TfLiteStatus CalculateOpDataAdd(TfLiteContext* context, TfLiteAddParams* params,
39
data->requires_broadcast = !HaveSameShapes(input1, input2);
40
41
if (output->type == kTfLiteInt8 || output->type == kTfLiteInt16) {
42
+ TFLITE_CHECK_NE(output->quantization.type, kTfLiteNoQuantization);
43
+
44
// 8bit -> 8bit general quantized path, with general rescalings
45
data->input1_offset = -input1->params.zero_point;
46
data->input2_offset = -input2->params.zero_point;
0 commit comments